/*! TGCHANNEL-NOTICE: 主题作者：枫 | 主题官网：https://ww.izjz.cc/ | 声明：本主题免费开源切勿被骗。 */
:root{--blue:#3390ec;--blue-soft:#edf6ff;--ink:#263440;--muted:#8a9ba8;--line:#e9eef2;--surface:#fff;--wall:#e8f0f3;--radius:15px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;color-scheme:light}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:155px}body{margin:0;background:#f3f5f7}button,input,textarea{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}button{color:inherit}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #75b5ec;outline-offset:3px}input:focus,textarea:focus{outline:none;border-color:var(--blue)}.icon{display:inline-block;flex-shrink:0;vertical-align:middle}.channel-shell{max-width:920px;min-height:100dvh;margin:0 auto;background:var(--wall);box-shadow:0 0 0 1px #e3e9ed;position:relative;background-image:radial-gradient(#c6d7dd66 .75px,transparent .75px);background-size:20px 20px}.topbar{position:sticky;top:0;z-index:30;height:82px;padding:0 30px;display:flex;align-items:center;gap:12px;background:#fff;border-bottom:1px solid var(--line)}.channel-identity{display:flex;align-items:center;gap:13px;min-width:0;flex:1;color:var(--ink)}.identity-text{min-width:0;display:flex;flex-direction:column;gap:5px}.identity-text strong{font-size:17px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.identity-text>span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar{--avatar:#80a6bf;width:38px;height:38px;border-radius:50%;background:var(--avatar);color:#fff;display:inline-flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;overflow:hidden;font-size:15px}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.channel-avatar{width:47px;height:47px;font-size:20px}.plane-avatar{background:#4ca1e8}.plane-avatar .icon{width:25px;height:25px;transform:translate(-1px,1px)}.friend-trigger{display:flex;align-items:center;gap:7px;background:transparent;border:0;font-size:13px;color:#5d7b91;padding:10px 0 10px 10px;flex-shrink:0}.friend-trigger .icon{width:19px;height:19px}.icon-button{background:transparent;border:0;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:#8595a2;border-radius:50%;flex-shrink:0}.icon-button:hover{background:#f0f5f8}.pinned-bar{background:#ffffffed;backdrop-filter:blur(10px);position:sticky;top:82px;z-index:25;min-height:64px;padding:10px 30px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #dde7ed}.pinned-bar>span{border-left:3px solid var(--blue);padding-left:11px;display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.pinned-bar strong{font-size:12px;font-weight:650}.pinned-bar>span>span{color:#697c89;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pinned-bar>.icon:last-child{width:17px;height:17px;color:#99a8b2}.message-stream{padding:25px 65px 30px;min-height:calc(100dvh - 144px)}.channel-welcome{text-align:center;max-width:360px;margin:18px auto 28px;color:#7d919d}.channel-welcome .avatar{display:flex;margin:0 auto 12px;width:60px;height:60px}.channel-welcome strong{display:block;color:#526f81;font-size:16px}.channel-welcome p{margin:9px 0;font-size:13px}.channel-welcome>span{font-size:11px;color:#8ca0ac}.history-nav{text-align:center;font-size:12px;margin:14px 0}.history-nav a{display:inline-block;background:#ffffffb5;border-radius:18px;padding:8px 15px;color:#6d8b9d}.date-marker{text-align:center;margin:20px 0 16px;font-size:11px}.date-marker span{display:inline-block;color:#fff;background:#aabdc9;padding:5px 12px;border-radius:20px}.message{max-width:600px;background:var(--surface);border-radius:var(--radius) var(--radius) var(--radius) 5px;box-shadow:0 1px 2px #243f5014;margin:0 0 18px;position:relative;scroll-margin-top:16px;min-width:0}.message-heading{display:flex;align-items:center;justify-content:space-between;padding:13px 17px 2px;height:39px}.message-author{font-size:13px;font-weight:650;color:#318bc2}.message-title{font-size:17px;line-height:1.55;font-weight:650;margin:7px 17px 8px}.message-title a{color:var(--ink)}.message-content{line-height:1.8;font-size:14px;padding:0 17px;overflow-wrap:anywhere}.message-content>*:first-child{margin-top:5px}.message-content>*:last-child{margin-bottom:6px}.message-content p{margin:10px 0}.message-content h1,.message-content h2{font-size:18px}.message-content h3{font-size:16px}.message-content img{display:block;max-width:100%;height:auto;max-height:570px;object-fit:contain;border-radius:8px;margin:10px auto;cursor:zoom-in;background:#f7f9fb}.message-content video{display:block;width:100%;max-height:520px;background:#16222a;border-radius:8px;margin:10px 0}.message-content audio{width:100%;margin:10px 0}.message-content pre{overflow:auto;background:#f4f7f9;border-radius:8px;padding:12px;line-height:1.55;font-size:12px;white-space:pre}.message-content :not(pre)>code{background:#f0f4f7;padding:2px 4px;border-radius:4px;font-size:12px}.message-content blockquote{border-left:3px solid var(--blue);margin:10px 0;padding:8px 12px;background:#f0f7fd;border-radius:0 7px 7px 0;color:#577386}.message-content table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.message-content td,.message-content th{border:1px solid var(--line);padding:6px 10px}.message-meta{display:flex;justify-content:flex-end;align-items:center;gap:4px;color:#9aadb8;padding:2px 15px 10px;font-size:10px}.message-meta a{color:inherit}.message-meta .icon{width:13px;height:13px;color:#85b4d5}.reaction-bar{padding:0 14px 10px;display:flex;align-items:center;gap:6px;position:relative;flex-wrap:wrap;min-height:33px}.reaction-hint{font-size:11px;color:#9cabb5}.reaction-chip,.add-reaction{border:0;border-radius:20px;background:#eff5f9;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:29px;padding:3px 10px;color:#6b91ad;font-size:12px}.reaction-chip .emoji{font-size:17px;line-height:1}.reaction-chip.selected{background:#dceeff;color:#2186d8;box-shadow:inset 0 0 0 1px #aad5f7}.add-reaction{padding:3px 7px;gap:1px;background:#f3f6f8}.add-reaction .icon{width:18px;height:18px}.reaction-picker{position:absolute;bottom:100%;left:12px;background:#fff;box-shadow:0 5px 25px #243f5026;border:1px solid var(--line);border-radius:30px;padding:7px;z-index:20;display:flex;gap:1px}.reaction-picker[hidden]{display:none}.reaction-picker button{border:0;background:none;padding:6px;font-size:24px;border-radius:50%;line-height:1.3}.reaction-picker button:hover{background:var(--blue-soft)}.discussion-link{border-top:1px solid #edf2f6;display:flex;align-items:center;gap:9px;padding:10px 15px;font-size:12px;font-weight:550;min-height:47px}.discussion-link>.icon{margin-left:auto;width:17px;height:17px}.comment-avatars{display:flex;flex-shrink:0;padding-left:0}.comment-avatars .avatar{width:25px;height:25px;font-size:10px;border:2px solid white;margin-left:-8px}.comment-avatars .avatar:first-child{margin-left:0}.empty-comment-avatar{display:flex;align-items:center;justify-content:center;width:27px;height:25px}.empty-comment-avatar .icon{width:21px;height:21px}.composer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e2eaf0;padding:12px 26px max(10px,env(safe-area-inset-bottom));z-index:28}.composer-row{display:flex;align-items:flex-end;gap:10px}.composer-row textarea{border:0;resize:none;width:100%;background:none;max-height:180px;min-height:39px;padding:9px 0;line-height:22px;font-size:14px}.send-button{width:40px;height:40px;flex-shrink:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff}.send-button .icon{width:21px;height:21px;transform:translate(-1px,1px)}.composer-tools{display:flex;align-items:center;justify-content:space-between;margin:7px 49px 0;gap:8px;font-size:11px;color:#99a8b2}.composer-tools>div{display:flex;align-items:center;gap:15px}.composer-tools button{display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:0;color:#7c909f;font-size:11px;white-space:nowrap}.composer-tools .icon{width:15px;height:15px}.publish-extra{padding:0 49px 12px}.publish-extra>input{border:0;border-bottom:1px solid var(--line);width:100%;padding:10px 0;font-size:13px;margin-bottom:12px}.publish-extra>div{display:flex;gap:22px;font-size:12px;color:#7c909f}.publish-extra label{display:flex;align-items:center;gap:5px}.publish-extra input[type=checkbox]{accent-color:var(--blue)}.attachment-preview{display:flex;gap:8px;overflow:auto;padding:0 49px 10px}.attachment-preview[hidden]{display:none}.attachment-item{position:relative;flex-shrink:0;width:66px;height:66px}.attachment-item img{width:66px;height:66px;border-radius:9px;object-fit:cover}.attachment-item button{position:absolute;top:2px;right:2px;border:0;border-radius:50%;background:#263b50b0;color:#fff;width:20px;height:20px;line-height:18px;font-size:15px}.guest-bar{height:59px;background:#fff;display:flex;align-items:center;justify-content:center;gap:20px;font-size:11px;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line)}.guest-bar>span{display:flex;gap:6px;align-items:center;color:#9aabb7}.guest-bar .icon{width:13px;height:13px}.guest-bar>a{color:#7c98aa}.jump-latest{position:fixed;bottom:130px;right:max(18px,calc((100vw - 920px)/2 + 18px));width:37px;height:37px;background:#fff;box-shadow:0 2px 8px #29475914;z-index:22;color:#88a1b2}.post-menu{position:relative;z-index:21}.post-menu summary{list-style:none;width:28px;height:28px}.post-menu summary::-webkit-details-marker{display:none}.menu-popover{position:absolute;right:0;top:32px;min-width:166px;padding:6px;background:#fff;box-shadow:0 5px 25px #243f5026;border:1px solid var(--line);border-radius:10px;display:grid;gap:2px}.menu-popover button,.menu-popover a{display:flex;align-items:center;gap:5px;border:0;background:none;padding:10px;font-size:12px;color:#60798a;text-align:left;white-space:nowrap}.menu-popover button:hover,.menu-popover a:hover{background:#eff6fb;border-radius:5px}.menu-popover .icon{width:16px;height:16px}.modal{width:min(430px,calc(100vw - 32px));border:0;border-radius:20px;padding:26px;max-height:82dvh;color:var(--ink);box-shadow:0 16px 70px #142e4a25}.modal::backdrop{background:#20374b66;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-heading small{font-size:10px;letter-spacing:2px;color:#8ca4b5}.modal-heading h2{font-size:21px;font-weight:600;margin:6px 0 0}.modal-heading .icon-button{margin-right:-6px}.modal-description{color:#91a0aa;font-size:12px;line-height:1.6;margin:13px 0 18px}.friends-list{display:grid;gap:2px}.friend-item{display:flex;align-items:center;gap:12px;padding:15px 0;border-top:1px solid var(--line);color:var(--ink)}.friend-item>span:not(.avatar){min-width:0;display:grid;gap:5px;flex:1}.friend-item strong{font-size:14px;font-weight:550}.friend-item small{color:#92a0ab;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.friend-item>.icon{width:17px;color:#adc0cc}.shortcode-list{display:grid;gap:8px}.shortcode-list button{border:1px solid var(--line);background:#f8fafc;border-radius:10px;text-align:left;padding:12px;min-width:0}.shortcode-list strong{display:block;font-size:13px;font-weight:550;margin-bottom:7px}.shortcode-list code{display:block;overflow-wrap:anywhere;font-size:10px;line-height:1.5;color:#7892a5}.lightbox{padding:0;border:0;background:transparent;max-width:96vw;max-height:96dvh;overflow:visible}.lightbox::backdrop{background:#101c29ed}.lightbox img{display:block;max-width:94vw;max-height:88dvh;object-fit:contain}.lightbox .icon-button{position:fixed;right:18px;top:18px;color:#fff;background:#ffffff1f;z-index:2}.toast{position:fixed;bottom:160px;left:50%;transform:translateX(-50%);background:#263b4bf2;color:#fff;padding:12px 20px;border-radius:12px;font-size:13px;max-width:90vw;z-index:100;text-align:center;box-shadow:0 3px 12px #0001}.empty-state{text-align:center;padding:60px 15px;color:#7c929f;line-height:2}.discussion{padding-top:2px}.discussion-empty{text-align:center;color:#8b9eaa;font-size:12px;padding:20px 0}.comment-list{list-style:none;padding:0;margin:0}.comment-row{display:flex;flex-wrap:wrap;gap:9px;align-items:flex-start;margin:16px 0}.comment-row>.avatar{width:33px;height:33px;font-size:12px}.comment-bubble{background:#fff;min-width:0;max-width:calc(100% - 43px);padding:11px 14px 8px;border-radius:13px 13px 13px 4px;flex:1}.comment-heading{display:flex;align-items:center;gap:7px;font-size:12px;color:#388bbc}.comment-heading time{margin-left:auto;font-size:9px;font-weight:400;color:#a1afb7;white-space:nowrap}.owner-badge{font-size:9px;color:#88a4b8}.comment-text{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.comment-text p{margin:7px 0}.comment-text img{max-width:100%;height:auto}.comment-text pre{overflow:auto}.comment-reply{text-align:right;font-size:10px}.comment-children{width:calc(100% - 20px);margin-left:20px}.comment-children .comment-children{width:100%;margin-left:0}.moderation-note{font-size:11px;color:#a89061}.respond{background:#fff;border-radius:14px;padding:16px;margin-top:25px;scroll-margin-top:20px}.guest-fields{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.guest-fields label{min-width:110px;flex:1}.guest-fields label>span{font-size:10px;color:#8e9eaa;display:block;margin-bottom:7px}.guest-fields input{border:1px solid var(--line);border-radius:7px;padding:10px;width:100%;font-size:12px;background:#fafcfd}.comment-input-row{display:flex;align-items:flex-end;gap:10px}.comment-input-row textarea{width:100%;resize:vertical;min-height:50px;max-height:200px;border:0;background:#f5f8fa;border-radius:9px;padding:10px;font-size:13px;line-height:1.7}.input-hint,.signed-in{font-size:10px;color:#9cabb5;margin:10px 0 0}.signed-in{margin:0 0 12px}.reply-status{font-size:11px;margin-bottom:8px}.page-navigator{display:flex;justify-content:center;gap:8px;list-style:none;padding:15px;font-size:12px}.page-navigator a{display:block;background:#fff;padding:6px 10px;border-radius:6px}.page-navigator .current a{background:var(--blue);color:#fff}.tg-notice{display:flex;align-items:flex-start;gap:9px;background:#f0f7fe;border-radius:8px;padding:12px;color:#4f7d9f;font-size:13px;margin:10px 0}.tg-notice .icon{width:17px;height:17px;margin-top:3px}.tg-quote,.tg-notice>div,.tg-collapse>div{white-space:pre-wrap}.tg-collapse{border:1px solid var(--line);border-radius:9px;margin:10px 0;font-size:13px}.tg-collapse summary{padding:10px 12px;cursor:pointer;color:#5785a2}.tg-collapse>div{padding:0 12px 12px}.tg-button{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;background:#edf6fe;padding:10px 12px;color:#3685be;font-size:13px;margin:8px 0}.tg-button .icon{width:17px;height:17px}.tg-button span{flex:1}.spoiler{border:0;background:#dbe5ed;border-radius:6px;position:relative;cursor:pointer;padding:4px 8px;line-height:1.8;text-align:left;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.spoiler>span:first-child{filter:blur(6px);opacity:0;user-select:none}.spoiler-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11px;color:#6e8799;white-space:nowrap;min-width:135px}.spoiler:not(.revealed){min-width:155px;min-height:33px}.spoiler.revealed{background:#f1f6fa}.spoiler.revealed>span:first-child{filter:none;opacity:1;user-select:text}.spoiler.revealed .spoiler-label{display:none}.message:target,.message.pin-highlight{outline:2px solid #7db8e5;outline-offset:3px}.skip{position:fixed;top:-100px;background:#fff;padding:10px;z-index:100}.skip:focus{top:5px}[hidden]{display:none!important}
@media(min-width:1000px){.channel-shell{margin-top:24px;margin-bottom:24px;min-height:calc(100dvh - 48px);border-radius:16px}.topbar{border-radius:16px 16px 0 0}.guest-bar,.composer{border-radius:0 0 16px 16px}.message-stream{min-height:calc(100dvh - 192px)}}
@media(max-width:640px){:root{font-size:14px}.channel-shell{box-shadow:none}.topbar{height:70px;padding:0 16px;gap:5px}.channel-avatar{width:42px;height:42px}.channel-identity{gap:10px}.identity-text strong{font-size:15px}.identity-text>span{font-size:11px;max-width:210px}.friend-trigger{gap:5px;font-size:12px}.friend-trigger .icon{width:17px;height:17px}.pinned-bar{top:70px;padding:9px 17px;gap:11px;min-height:60px}.message-stream{padding:17px 13px 24px;min-height:calc(100dvh - 129px)}.channel-welcome{margin:15px auto 24px}.channel-welcome .avatar{width:53px;height:53px}.message{max-width:calc(100% - 9px);border-radius:13px 13px 13px 4px}.message-heading{padding-left:14px;padding-right:12px}.message-title{font-size:16px;margin-left:14px;margin-right:14px}.message-content{padding:0 14px;font-size:14px}.message-content img{max-height:480px}.composer{padding:10px 12px max(9px,env(safe-area-inset-bottom))}.composer-row{gap:7px}.composer-tools{margin-left:43px;margin-right:3px}.composer-tools>div{gap:12px}.composer-tools>span{font-size:10px;max-width:105px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer-row textarea{font-size:16px}.publish-extra{padding:0 6px 12px}.publish-extra>input{font-size:16px}.attachment-preview{padding-left:5px}.guest-bar{gap:17px;font-size:10px}.jump-latest{right:12px;bottom:120px;width:32px;height:32px}.back-button{margin-left:-9px;margin-right:0;width:29px}.is-discussion .friend-trigger span{display:none}.is-discussion .message{max-width:100%}.comment-children{width:calc(100% - 12px);margin-left:12px}.guest-fields input,.comment-input-row textarea{font-size:16px}.respond{padding:13px}.modal{padding:22px}.toast{font-size:12px}.date-marker{margin:15px 0 13px}.is-discussion .message-stream{padding-bottom:30px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.is-discussion .jump-latest{display:none}@media(max-width:640px){html{scroll-padding-top:136px}}
/* 1.1: a fixed application frame with independently scrolling conversations. */
:root{--blue:#388ecc;--blue-soft:#edf5fb;--ink:#28343e;--muted:#92a0ac;--wall:#f0f3f5;--app-height:100dvh;--app-top:0px}html{height:100%;overflow:hidden;overscroll-behavior:none;scroll-padding:0;scroll-behavior:auto;touch-action:pan-y}body{position:fixed;inset:0;margin:0;height:100%;overflow:hidden;overscroll-behavior:none;background:#edf0f3;-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:pan-y}button,input,textarea,summary,a{touch-action:manipulation}input,textarea{font-size:16px}.channel-shell{display:flex;flex-direction:column;isolation:isolate;position:relative;top:var(--app-top);width:100%;max-width:900px;height:calc(var(--app-height) - 32px);min-height:0;margin:16px auto;border-radius:16px;overflow:hidden;background:var(--wall);background-image:none;box-shadow:0 0 0 1px #dfe6eb;--dock-height:72px}.channel-shell::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:url("wallpaper.svg") repeat;background-size:450px 450px}.wallpaper-cloud{--wall:#f2f5f7}.wallpaper-telegram{--wall:#e7eff5}.wallpaper-sage{--wall:#e9f0eb}.wallpaper-sand{--wall:#f3efe7}.wallpaper-lilac{--wall:#efedf6}.wallpaper-custom{--wall:#eef1f3}.wallpaper-custom::before{background-image:linear-gradient(rgba(255,255,255,var(--wall-mask,.2)),rgba(255,255,255,var(--wall-mask,.2))),var(--wall-image);background-size:cover;background-position:center;background-repeat:no-repeat}.wallpaper-custom.wallpaper-tile::before{background-size:auto,320px auto;background-repeat:repeat}.topbar{position:relative;top:auto;flex:0 0 auto;z-index:30;height:72px;padding:0 24px;border-radius:0;background:#fff;border-bottom:1px solid #e9eef2;gap:8px}.channel-identity{border:0;padding:0;background:none;text-align:left}.channel-avatar{width:43px;height:43px}.identity-text{gap:4px}.identity-text strong{font-size:15px;font-weight:650}.identity-text>span{font-size:11px}.channel-status.online-active:before,.profile-status.online-active:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#68ac95;margin-right:5px;vertical-align:2px}.channel-menu-button{width:40px;height:40px;color:#7f94a4;transform:rotate(90deg)}.pinned-bar{position:relative;top:auto;flex:0 0 auto;z-index:24;min-height:56px;padding:8px 25px;gap:14px;background:#ffffffeb;backdrop-filter:blur(8px);border-bottom:1px solid #e8edf1}.pinned-bar>span{border-left-width:2px;gap:2px;padding-left:10px}.pinned-bar strong{font-size:11px}.pinned-bar>span>span{font-size:12px;color:#7b8d99}.pinned-bar>.icon:first-child{width:19px;height:19px}.message-stream{flex:1 1 0;min-height:0;width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto;scrollbar-width:thin;scrollbar-color:#bdcbd380 transparent;-webkit-overflow-scrolling:touch;padding:18px 68px 22px;scroll-padding:14px;contain:layout style}.message-stream::-webkit-scrollbar{width:4px}.message-stream::-webkit-scrollbar-thumb{background:#bdcbd380;border-radius:9px}.channel-welcome{margin:20px auto 28px;max-width:330px}.channel-welcome .avatar{width:54px;height:54px}.channel-welcome>span{display:none}.channel-welcome p{line-height:1.7;font-size:12px}.date-marker{margin:16px 0}.date-marker span{font-size:10px;background:#a0b2bf9c;padding:4px 10px;backdrop-filter:blur(6px)}.message{max-width:620px;border-radius:14px 14px 14px 5px;margin-bottom:12px;box-shadow:0 1px 1px #50677b0b;scroll-margin:0;border:1px solid #e7edf13d}.message-heading{height:36px;padding:11px 15px 0}.message-author{font-size:12px;color:#3a86b8;line-height:20px}.message-title{font-size:16px;font-weight:650;line-height:1.55;margin:7px 15px 6px}.message-content{padding:0 15px;font-size:14px;line-height:1.75}.message-content p{margin:9px 0}.message-content img{margin:9px auto;border-radius:8px;max-height:520px}.message-meta{padding:2px 13px 8px;font-size:10px;color:#9daeb9}.reaction-bar{gap:5px;min-height:30px;padding:0 12px 8px;align-items:center;flex-wrap:wrap}.reaction-chip{height:28px;min-height:28px;gap:5px;border-radius:16px;background:#eff5f9;padding:3px 9px 3px 7px;color:#5e8dab;font-size:11px;font-weight:600;transition:background-color .13s,box-shadow .13s;line-height:20px}.reaction-chip .emoji-art{width:19px;height:19px;object-fit:contain;display:block;margin:0;background:none}.reaction-chip.selected{color:#fff;background:#5a9ecb;box-shadow:none}.reaction-chip.selected .emoji-art{filter:none}.reaction-chip:active{transform:scale(.95)}.add-reaction{background:transparent;border:1px solid #e8eff4;width:27px;height:27px;min-height:27px;padding:0;border-radius:50%;color:#97aebe;opacity:1}.add-reaction:hover{background:#f0f6fa}.add-reaction:disabled{opacity:.35}.add-reaction .icon{width:17px;height:17px}.discussion-link{border-top:1px solid #edf2f6;padding:9px 13px;min-height:43px;font-size:11px;gap:8px;color:#408bbb}.discussion-link>.icon{width:15px;height:15px}.comment-avatars .avatar{width:24px;height:24px;font-size:9px}.empty-comment-avatar{width:24px;height:24px;background:#f1f7fb;border-radius:50%}.empty-comment-avatar .icon{width:16px;height:16px}.composer,.comment-dock,.guest-bar{flex:0 0 auto;position:relative;top:auto;bottom:auto;background:#fff;z-index:28;margin:0;border-radius:0;border:0;border-top:1px solid #e7edf1}.composer{padding:10px 18px 9px;max-height:52%;overflow-y:auto;overscroll-behavior:contain}.composer-row{gap:7px;align-items:flex-end}.composer-row>.icon-button{height:39px;width:34px}.composer-row textarea{font-size:16px;line-height:22px;min-height:39px;max-height:120px;padding:9px 0}.send-button{width:37px;height:37px;background:#4c98cc}.send-button .icon{width:19px;height:19px}.composer-tools{margin:5px 43px 0;font-size:10px}.composer-tools>div{gap:16px}.composer-tools button{font-size:10px;color:#8da1ae}.composer-tools .icon{width:14px;height:14px}.composer-tools>span{font-size:9px;color:#a1b0ba}.publish-extra{padding:0 42px 10px}.publish-extra>input{font-size:16px}.publish-extra>div{font-size:11px;gap:18px}.attachment-preview{padding:0 42px 9px}.guest-bar{height:53px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;font-size:11px}.guest-bar button,.guest-bar a{display:flex;align-items:center;gap:7px;background:none;border:0;padding:8px 0;color:#8ea2b0;font-size:11px}.guest-bar .icon{width:15px;height:15px}.guest-bar a{color:#568fb5}.guest-bar a .icon{width:13px;height:13px}.jump-latest{position:absolute;right:20px;bottom:calc(var(--dock-height) + 17px);width:33px;height:33px;z-index:23;border:1px solid #e7edf1;box-shadow:0 2px 5px #283f5110;color:#89a5b8}.is-discussion .jump-latest{display:none}.message:target{outline:none}.message.pin-highlight{outline:2px solid #9bc8e6;outline-offset:3px}.history-nav{margin:8px 0 16px}.history-nav a{font-size:10px;background:#ffffffad;padding:6px 12px;color:#7a95a7}.discussion{padding-top:1px}.discussion>.date-marker{margin:23px 0 19px}.comment-row{gap:8px;margin:12px 0;align-items:flex-end}.comment-row>.avatar{width:29px;height:29px;font-size:11px;margin-bottom:1px}.comment-bubble{max-width:calc(100% - 37px);background:#fff;flex:1;min-width:0;padding:10px 12px 7px;border-radius:13px 13px 13px 4px;box-shadow:0 1px 1px #50677b08}.comment-heading{flex-wrap:wrap;gap:4px 6px;font-size:11px;align-items:center;line-height:16px;color:#4386b0}.comment-heading strong{font-weight:600;overflow-wrap:anywhere;max-width:100%}.comment-heading time{font-size:9px;line-height:16px;color:#a5b1ba;margin-left:auto}.owner-badge{color:#789caf;font-size:9px}.nameplate{display:inline-flex;align-items:center;padding:0 5px;min-height:16px;max-width:100%;font-size:9px;font-weight:500;line-height:16px;border-radius:4px;color:var(--badge-ink,#547b9a);background:var(--badge-bg,#edf4fa);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.comment-text{font-size:13px;line-height:1.8}.comment-text p{margin:5px 0}.comment-reply{text-align:right;font-size:10px;line-height:16px}.comment-reply a{padding:3px 0 3px 8px;color:#76a5c1}.comment-children{margin-top:-3px;width:calc(100% - 20px);margin-left:20px}.comment-children .comment-row{margin:7px 0}.comment-children .avatar{width:25px;height:25px}.comment-children .comment-bubble{max-width:calc(100% - 33px)}.comment-dock{padding:8px 17px 11px;max-height:48%;overflow-y:auto;overscroll-behavior:contain;scroll-margin:0}.identity-line{display:flex;align-items:center;gap:6px;font-size:10px;color:#8ca2b0;padding:0 1px 6px}.identity-line .avatar{width:17px;height:17px;font-size:8px}.identity-line .nameplate{font-size:8px;min-height:14px;line-height:14px}.comment-input-row{gap:7px;align-items:flex-end}.comment-input-row>.icon-button{width:29px;height:38px;color:#97aebb}.comment-input-row textarea{resize:none;max-height:120px;min-height:38px;height:38px;line-height:22px;border:0;border-radius:0;background:none;padding:8px 0;font-size:16px}.guest-identity-button{border:0;background:none;display:flex;align-items:center;gap:6px;width:100%;text-align:left;padding:2px 0 7px;color:#91a4b1;font-size:10px}.guest-identity-button .icon{width:13px;height:13px}.guest-identity-button>.icon:last-child{margin-left:auto;width:12px;height:12px}.guest-fields{gap:9px;margin:0 0 8px}.guest-fields label{min-width:120px}.guest-fields label>span{font-size:9px;margin-bottom:5px;color:#9caeba}.guest-fields input{background:#f7f9fb;border:1px solid #ebeff3;font-size:16px;padding:7px 9px;border-radius:7px;min-height:35px}.reply-status{display:flex;align-items:center;gap:9px;margin:0 0 8px;padding:6px 8px 6px 10px;border-left:2px solid #7aafd0;background:#f6fafe;border-radius:0 5px 5px 0;font-size:10px;min-height:28px;color:#6c93ae}.reply-status #reply-to-text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-status a{font-size:10px;color:#9aadb9}.modal{border-radius:20px;padding:23px;width:min(410px,calc(100vw - 32px));max-height:calc(var(--app-height) * .84);overflow:auto;overscroll-behavior:contain}.modal::backdrop{background:#344b5e40;backdrop-filter:blur(5px)}.modal-heading h2{font-size:17px;line-height:24px;margin:0;font-weight:600}.modal-heading small{display:none}.modal-description{font-size:11px;margin:10px 0 17px;color:#97a7b3}.modal .icon-button{width:31px;height:31px}.modal .icon-button .icon{width:20px;height:20px}.channel-profile{text-align:center;padding:22px 5px}.channel-profile .avatar{width:68px;height:68px}.channel-profile h3{font-size:18px;margin:13px 0 7px;font-weight:650}.channel-profile p{font-size:12px;line-height:1.75;margin:6px 0 9px;color:#92a3af}.profile-status{font-size:10px;color:#88a2b3}.channel-actions{display:grid;border-top:1px solid #eef2f5}.channel-actions button,.channel-actions a{padding:15px 1px;background:none;border:0;border-bottom:1px solid #f0f3f6;display:flex;align-items:center;gap:12px;color:#6c8ba2;text-align:left;font-size:12px}.channel-actions span{flex:1}.channel-actions .icon{width:18px;height:18px;color:#8ea9bc}.channel-actions .icon:last-child{width:15px;height:15px}.channel-actions .quiet-action{font-size:10px;color:#a3b1bc;border:0;padding-bottom:1px}.friend-item{padding:15px 0}.friend-item .avatar{width:35px;height:35px;font-size:13px}.friend-item strong{font-size:13px}.reactions-dialog{padding:21px 20px 17px;width:min(370px,calc(100vw - 32px))}.emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 4px;margin:20px 0 10px}.emoji-grid button{display:flex;flex-direction:column;align-items:center;gap:7px;border:0;background:transparent;padding:10px 2px 7px;border-radius:12px;min-width:0;transition:background .15s}.emoji-grid .emoji-art{width:32px;height:32px;object-fit:contain;transition:transform .15s}.emoji-grid button>span{font-size:9px;color:#a4b3bd;white-space:nowrap}.emoji-grid button:hover,.emoji-grid button.chosen{background:#edf6fd}.emoji-grid button.chosen>span{color:#4e97c7}.emoji-grid button:active .emoji-art{transform:scale(1.15)}.reaction-footnote{font-size:9px;color:#a4b3bd;text-align:center;margin:14px 0 0}.sheet-handle{display:none}.toast{bottom:calc(var(--dock-height,100px) + 30px);max-width:min(85vw,430px);font-size:12px;padding:10px 15px;background:#374f60ed}.lightbox{max-width:96vw;max-height:calc(var(--app-height) * .94)}.lightbox img{max-height:calc(var(--app-height) * .88)}.skip:focus{top:-100px}.skip:focus-visible{top:5px}.tg-notice{background:#f2f8fc;color:#6d92ab;font-size:12px}.tg-button{background:#f1f7fc;font-size:12px}.shortcode-list code{font-size:10px}.page-navigator{margin:10px 0;font-size:11px}.empty-state{padding:45px 10px;font-size:13px}.discussion-empty{font-size:11px}
@media(max-width:640px){html{scroll-padding:0}.channel-shell{margin:0;width:100%;height:var(--app-height);min-height:0;border-radius:0;box-shadow:none}.topbar{height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;gap:5px}.channel-avatar{width:39px;height:39px}.channel-identity{gap:9px}.identity-text strong{font-size:14px}.identity-text>span{font-size:10px;max-width:240px}.channel-menu-button{width:33px;height:38px}.channel-menu-button .icon{width:21px;height:21px}.back-button{width:25px;margin-left:-5px;margin-right:3px}.back-button .icon{width:21px;height:21px}.pinned-bar{min-height:51px;padding:7px 15px;gap:11px}.pinned-bar strong{font-size:10px}.pinned-bar>span>span{font-size:11px}.pinned-bar>.icon:first-child{width:17px;height:17px}.pinned-bar>span{padding-left:8px}.message-stream{padding:13px 10px 16px;min-height:0;scrollbar-width:none}.message{max-width:calc(100% - 18px);border-radius:13px 13px 13px 4px;margin-bottom:10px}.message-heading{height:33px;padding:10px 12px 0}.message-author{font-size:11px}.message-title{font-size:15px;margin:7px 12px 5px;line-height:1.6}.message-content{padding:0 12px;font-size:14px;line-height:1.8}.message-content img{border-radius:7px;max-height:480px}.message-meta{font-size:9px;padding-right:11px}.reaction-bar{padding-left:10px;padding-right:10px;gap:4px}.reaction-chip{font-size:10px;height:27px;min-height:27px;padding:3px 8px 3px 6px}.reaction-chip .emoji-art{width:18px;height:18px}.add-reaction{width:26px;height:26px;min-height:26px}.discussion-link{padding:8px 11px;min-height:40px;font-size:11px}.discussion-link .avatar{width:23px;height:23px}.composer{padding:8px 11px max(8px,env(safe-area-inset-bottom));max-height:54%}.composer-tools{margin:3px 40px 0 40px}.composer-tools>div{gap:13px}.composer-tools button{font-size:9px;min-height:21px}.composer-tools>span{font-size:9px;max-width:75px}.composer-row textarea{font-size:16px}.composer-row>.icon-button{width:30px;height:38px}.send-button{width:36px;height:36px}.send-button .icon{width:18px;height:18px}.publish-extra{padding:0 5px 7px}.publish-extra>input{padding:7px 0;margin-bottom:8px}.publish-extra>div{font-size:11px}.attachment-preview{padding-left:3px;padding-right:3px}.attachment-item,.attachment-item img{width:56px;height:56px}.guest-bar{height:calc(47px + env(safe-area-inset-bottom));padding:0 17px env(safe-area-inset-bottom);font-size:10px}.guest-bar button,.guest-bar a{font-size:10px}.jump-latest{right:11px;bottom:calc(var(--dock-height) + 12px);height:31px;width:31px}.is-discussion .message{max-width:calc(100% - 12px)}.discussion{padding-right:3px}.comment-heading{font-size:11px;gap:3px 5px}.comment-heading time{font-size:8px}.comment-bubble{padding:9px 11px 6px}.comment-row{margin:11px 0;gap:7px}.comment-row>.avatar{width:27px;height:27px;font-size:10px}.comment-bubble{max-width:calc(100% - 34px)}.comment-text{font-size:13px}.nameplate{font-size:8px;padding:0 4px;min-height:15px;line-height:15px}.owner-badge{font-size:8px}.comment-dock{padding:8px 12px max(8px,env(safe-area-inset-bottom));max-height:52%}.comment-input-row{gap:5px}.comment-input-row textarea{font-size:16px}.guest-fields{gap:7px}.guest-fields label{min-width:110px}.guest-fields input{font-size:16px;min-height:34px;padding:7px 8px}.guest-fields label>span{font-size:9px}.guest-identity-button{font-size:10px;padding-bottom:6px}.modal{padding:21px;border-radius:19px;width:calc(100vw - 28px)}.reactions-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;border-radius:22px 22px 0 0;padding:9px 19px max(21px,env(safe-area-inset-bottom));max-height:80dvh;top:auto;bottom:calc(100dvh - var(--app-height) - var(--app-top));}.sheet-handle{display:block;background:#dfe6eb;width:34px;height:4px;border-radius:4px;margin:0 auto 14px}.reactions-dialog .modal-heading h2{font-size:15px}.emoji-grid{gap:6px 3px;margin:13px 0 8px}.emoji-grid .emoji-art{width:33px;height:33px}.emoji-grid button{padding:9px 2px 7px;gap:6px}.emoji-grid button>span{font-size:9px}.reaction-footnote{font-size:9px;margin-top:12px}.channel-profile{padding:20px 4px}.channel-profile .avatar{width:62px;height:62px}.toast{bottom:calc(100dvh - var(--app-height) + 105px);font-size:11px}.channel-welcome{margin:19px auto 25px}.channel-welcome strong{font-size:14px}.channel-welcome p{font-size:11px}.date-marker span{font-size:9px}.post-menu .menu-popover{right:0;min-width:153px}.menu-popover button,.menu-popover a{font-size:11px;padding:10px 8px}}
@media(prefers-reduced-motion:reduce){.reaction-chip,.emoji-grid button,.emoji-grid .emoji-art{transition:none}*{scroll-behavior:auto!important}}

/* 1.2: Telegram-style view count at the end of the reaction footer. */
.reaction-bar .message-meta{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:27px;margin-left:auto;padding:0 1px 0 7px;color:#9babb6;font-size:9px;line-height:16px;white-space:nowrap;flex:0 0 auto}
.reaction-bar .message-meta>a,.view-meta{display:inline-flex;align-items:center;color:inherit}
.view-meta{gap:3px;font-variant-numeric:tabular-nums}
.view-meta .icon{width:13px;height:13px;color:#9babb6}
.reaction-bar .message-meta>.icon{width:12px;height:12px;color:#7eaac8}
@media(max-width:640px){.reaction-bar .message-meta{padding-left:5px;font-size:9px}.view-meta .icon{width:12px;height:12px}}

/* 1.3: compact Telegram discussion bubbles, reply previews and image replies. */
.discussion>.comment-list{display:block;margin:0;padding:0;list-style:none}
.comment-row{display:flex;width:100%;gap:8px;align-items:flex-end;flex-wrap:wrap;margin:12px 0}
.comment-row>.avatar{flex:0 0 auto;margin-bottom:1px}
.comment-bubble{display:block;flex:0 1 auto;width:fit-content;min-width:88px;max-width:min(78%,560px);padding:9px 11px 6px;overflow:hidden}
.comment-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-height:16px;line-height:16px}
.comment-heading .comment-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.owner-badge{display:inline-flex;align-items:center;gap:3px;min-height:17px;padding:1px 6px 1px 4px;border-radius:8px;background:#4b96c8;color:#fff;font-size:8px;font-weight:650;line-height:15px;box-shadow:0 0 0 1px #3f89bc1a;white-space:nowrap}
.owner-badge .icon{width:12px;height:12px;color:#fff;stroke-width:2}
.comment-quote{display:grid;gap:1px;position:relative;margin:5px 0 4px;padding:4px 7px 4px 9px;min-width:0;color:#647b8b;background:#f4f8fb;border-radius:0 5px 5px 0;font-size:10px;line-height:15px;overflow:hidden}
.comment-quote::before{content:"";position:absolute;inset:0 auto 0 0;width:2px;background:#4797ca;border-radius:2px}
.comment-quote strong{color:#3689bd;font-size:10px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.comment-quote span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7f909b}
.comment-text{min-width:0;width:auto;max-width:100%;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.comment-text p{margin:4px 0}
.comment-foot{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-height:14px;margin-top:1px;color:#a1afb8;font-size:8px;line-height:14px;white-space:nowrap}
.comment-reply{margin-right:auto;text-align:left;font-size:9px;line-height:14px}
.comment-reply:empty{display:none}
.comment-reply a{display:inline-flex;align-items:center;gap:3px;padding:1px 4px 1px 0;color:#6d9fbd}
.comment-reply .icon{width:12px;height:12px}
.comment-children{flex:0 0 100%;width:100%;margin:0!important;padding:0}
.comment-children>.comment-list{display:block;width:100%;margin:0;padding:0;list-style:none}
.comment-children .comment-row{width:100%;margin:8px 0 0}
.comment-children .comment-bubble{max-width:min(78%,560px)}
.comment-row.comment-highlight .comment-bubble{box-shadow:0 0 0 2px #85badd,0 1px 1px #50677b08}
.comment-image-button{display:block;width:240px;max-width:100%;margin:5px 0 2px;padding:0;border:0;border-radius:9px;background:#edf2f5;overflow:hidden;cursor:zoom-in}
.comment-image{display:block;width:100%;max-width:100%;max-height:330px;object-fit:contain;border-radius:9px}
.reply-status{display:flex;align-items:center;gap:8px;margin:0 33px 6px;padding:0;min-height:36px;background:none;border:0;border-radius:0;color:#738b9a}
.reply-accent{align-self:stretch;width:2px;border-radius:2px;background:#4b98ca}
.reply-copy{display:grid;min-width:0;flex:1;gap:1px;font-size:10px;line-height:15px}
.reply-copy strong{color:#3489bd;font-size:10px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reply-copy>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8b9aa5}
.reply-status #cancel-comment-reply-link{display:flex!important;align-items:center;justify-content:center;width:25px;height:25px;padding:0;border-radius:50%;color:#8da0ad;font-size:18px;font-weight:300;line-height:25px}
.reply-status #cancel-comment-reply-link:hover{background:#f0f4f7}
.comment-input-row textarea{min-width:0}
.comment-image-preview{display:flex;gap:7px;max-width:100%;overflow-x:auto;padding:1px 35px 7px;scrollbar-width:none}
.comment-image-thumb{position:relative;display:block;flex:0 0 auto;width:52px;height:52px}
.comment-image-thumb img{display:block;width:52px;height:52px;object-fit:cover;border-radius:8px;background:#eef2f5}
.comment-image-thumb button{position:absolute;top:-4px;right:-4px;display:flex;align-items:center;justify-content:center;width:19px;height:19px;padding:0;border:2px solid #fff;border-radius:50%;background:#526775;color:#fff;font-size:14px;line-height:15px}
#comment-upload-trigger.is-uploading .icon{opacity:.45}
@media(max-width:640px){.comment-row{gap:7px;margin:10px 0}.comment-bubble{min-width:82px;max-width:calc(100% - 46px);padding:8px 10px 5px}.comment-children .comment-bubble{max-width:calc(100% - 46px)}.comment-heading .comment-name{max-width:145px}.owner-badge{font-size:8px;padding-right:5px}.comment-quote{margin-top:4px}.comment-image{max-height:280px}.reply-status{margin:0 32px 5px}.comment-image-preview{padding-left:32px;padding-right:32px}.comment-input-row>.icon-button{width:27px}.comment-input-row{gap:3px}}
.theme-credit{margin:12px 16px 16px;padding:0;color:#91979d;text-align:center;font-size:11px;font-weight:400;line-height:1.8}.theme-credit span{display:inline-block}.theme-credit a{color:#737b83;text-decoration:none}.theme-credit a:hover{color:#303841}.theme-credit a:focus-visible{outline:1px solid currentColor;outline-offset:3px}
.theme-credit a.teley-brand{color:#2787b9;font-size:12px;font-weight:600;text-decoration:underline;text-decoration-color:#b4d7e9;text-underline-offset:3px}.theme-credit a.teley-brand:hover{color:#196b97;text-decoration-color:currentColor}
