@import url("./voice.css");
@import url("./profile.css");
@import url("./message-menu.css");
:root{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','PingFang SC','Microsoft YaHei',sans-serif;color:#25262a;background:#fafafa;font-synthesis:none;font-size:14px;--muted:#8e9097;--line:#efeff1;--surface:#f4f4f6}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #7b8392;outline-offset:3px}a{color:inherit}input,textarea,select{border:1px solid #e8e8eb;border-radius:13px;padding:13px;background:#f7f7f9;outline:none;color:#313238;max-width:100%}input:focus,textarea:focus,select:focus{border-color:#9d9fa7}textarea{resize:vertical;line-height:1.8}img{object-fit:cover;max-width:100%;filter:none}button.primary,.primary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 22px;background:#242528;color:#fff;border-radius:14px;text-decoration:none;font-size:13px;gap:8px}.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 18px;background:#f0f0f3;border-radius:14px;font-size:13px}.quiet{color:#8e9097;font-size:12px}.muted{color:#8e9097}.boot,.entry{max-width:460px;margin:14vh auto 0;padding:30px}.boot h1,.entry h1{font-size:32px;font-weight:600;letter-spacing:-1px}.entry .eyebrow{font-size:10px;letter-spacing:3px;color:#989ba2}.entry h1{margin:28px 0 12px}.entry .intro{font-size:17px;line-height:1.8;margin:0 0 32px;color:#6f727a}.entry p{line-height:1.9;color:#777b84}.entry .primary{width:100%;margin:16px 0}.entry footer{font-size:11px;color:#a2a4aa;line-height:1.9;margin-top:30px}.entry form{display:grid;gap:14px}.entry input[type=text]{width:100%;font-size:16px}.check{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.9;color:#7a7d85}.check input{margin-top:6px;accent-color:#25262a}.entry .preview-link{display:block;text-align:center;color:#7d8088;font-size:12px;padding:12px}.beta{font-size:9px;letter-spacing:1px;color:#a8abb1;border:1px solid #e6e7ea;border-radius:5px;padding:3px 5px;vertical-align:middle;font-weight:400;margin-left:8px}.app-shell{height:100dvh;display:flex;flex-direction:column;max-width:1440px;margin:auto;background:#fff}.topbar{height:76px;min-height:76px;display:grid;grid-template-columns:82px minmax(0,1fr) 82px;align-items:center;padding:0 25px;border-bottom:1px solid #f6f6f7;background:rgba(250,250,251,.96);z-index:5}.channel-button{font-size:12px;text-align:left;padding:12px 0;color:#676a73}.channel-button span{margin-right:6px;font-size:15px}.brand{text-align:center;min-width:0}.brand strong{font-size:17px;font-weight:600;display:block;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.brand small{display:block;color:#979aa2;font-size:10px;margin-top:2px}.avatar{width:44px;height:44px;border-radius:50%;padding:0;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;background:#ededef;color:#74777f;font-weight:500;font-size:17px;line-height:1}.avatar img{display:block;width:100%;height:100%}.topbar>.avatar{justify-self:end}.workspace{display:flex;flex:1;min-height:0}.main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden}.chat-intro{padding:18px 25px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.chat-intro p{font-size:11px;color:#9b9da5;line-height:1.7;margin:0}.connection{font-size:10px;white-space:nowrap;color:#999da7}.connection[data-state=error]{color:#706978}.timeline{flex:1;min-height:0;overflow:auto;padding:12px 25px 28px;scroll-behavior:auto;overscroll-behavior:contain}.chat-empty{display:flex;min-height:45vh;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;gap:10px;color:#a1a4ab;font-size:12px}.chat-empty strong{font-size:18px;font-weight:500;color:#777c85}.chat-empty p{max-width:240px;line-height:1.9;margin:0}.chat-date{text-align:center;font-size:10px;color:#b0b2b8;margin:22px 0}.msg{display:flex;gap:11px;margin:22px 0;align-items:flex-start;max-width:100%}.msg>.avatar{width:41px;height:41px;font-size:15px}.msg-body{max-width:min(76%,560px);min-width:0}.msg-name{font-size:10px;color:#8f939c;padding:0 0 7px;text-align:left;display:block}.bubble{font-size:14px;line-height:1.85;padding:10px 15px;background:#f3f3f5;border-radius:3px 15px 15px 15px;white-space:pre-wrap;overflow-wrap:anywhere;color:#494d55}.msg.self{flex-direction:row-reverse}.msg.self .msg-heading{justify-content:flex-end}.msg.self .bubble{background:#e9eaed;color:#343740;border-radius:15px 3px 15px 15px}.msg.deleted .bubble{color:#a0a2a9;background:transparent;font-size:12px;padding-left:0}.quote{font-size:10px;display:flex;gap:7px;text-align:left;max-width:100%;align-items:center;background:#f6f6f8;color:#999da6;border-radius:7px;margin-top:6px;padding:7px 9px;line-height:1.7;overflow-wrap:anywhere}.quote .avatar{width:21px;height:21px;min-width:21px;font-size:9px}.composer-area{flex-shrink:0;padding:10px 24px max(14px,env(safe-area-inset-bottom));background:#fff}.composer{display:flex;gap:9px;align-items:flex-end;padding:6px 6px 6px 13px;background:#f2f2f4;border-radius:22px;border:1px solid #ededf0}.composer textarea{border:0;background:none;resize:none;flex:1;min-width:0;font-size:16px;padding:4px 0 5px;max-height:116px;line-height:1.6;min-height:32px}.send{background:#292b30;color:#fff;border-radius:50%;width:36px;min-width:36px;height:36px;font-size:22px}.composer-note{margin:8px 4px 0;font-size:9px;color:#b0b3ba;display:flex;justify-content:space-between}.reply-bar{display:flex;align-items:center;gap:12px;padding:8px 5px 12px;font-size:11px;color:#8a8e97;line-height:1.7}.reply-bar span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-bar button{width:34px;height:32px;font-size:18px}.older{display:block;margin:0 auto 15px;font-size:10px;color:#999ea8;min-height:36px}.jump-latest{position:absolute;bottom:120px;left:50%;transform:translateX(-50%);font-size:11px;color:#717781;border:1px solid #ededf1;background:#fff;box-shadow:0 4px 12px #00000008;padding:9px 14px;border-radius:20px}.shade{position:fixed;inset:76px 0 0;border:0;background:#20232920;backdrop-filter:blur(6px);z-index:20}.drawer{position:fixed;top:76px;bottom:0;width:min(350px,calc(100vw - 56px));background:#fff;z-index:21;overflow-y:auto;overscroll-behavior:contain;padding:25px;scrollbar-width:none}.drawer::-webkit-scrollbar{display:none}.drawer.left{left:max(0px,calc((100vw - 1440px)/2))}.drawer.right{right:max(0px,calc((100vw - 1440px)/2))}.drawer h2{font-weight:600;font-size:23px;margin:0 0 8px}.drawer .section-title{font-size:10px;color:#a8abb3;margin:32px 0 11px}.channel-row{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:18px 12px;border-radius:12px;font-size:15px}.channel-row.active{background:#f2f3f5}.channel-row small{font-size:10px;color:#a1a5ae;font-weight:400}.channel-note{font-size:10px;color:#a2a6b0;padding:12px;line-height:1.9}.menu-intro{display:flex;gap:16px;align-items:center;padding:1px 0 27px}.menu-intro>.avatar{width:74px;height:74px;font-size:27px}.menu-intro>div{min-width:0;flex:1}.menu-intro h2{font-size:21px;overflow-wrap:anywhere}.menu-intro p{font-size:11px;color:#9a9da5;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:7px 0 0}.menu-intro button.text{font-size:10px;min-height:34px;color:#8a8f99;padding:8px 0}.menu-row{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;text-align:left;min-height:56px;padding:15px 8px;border-bottom:1px solid #f1f2f4;font-size:14px}.menu-row span:last-child{font-size:12px;color:#afb3bd}.drawer footer{font-size:9px;color:#b8bdc6;line-height:1.9;margin:32px 7px}.drawer-back{font-size:12px;min-height:40px;padding:0;color:#9096a0;margin-bottom:12px}.drawer-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:8px 0 22px}.drawer-heading h2{margin:0;font-size:21px}.drawer-heading button{font-size:11px;color:#959ba5;min-height:40px}.person-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid #f0f1f4;width:100%;text-align:left}.person-row .person-copy{flex:1;min-width:0}.person-row strong{font-size:13px;font-weight:500;display:block;line-height:1.8;overflow-wrap:anywhere}.person-row small{font-size:10px;color:#a1a7b1;display:block;line-height:1.8;margin-top:4px;overflow-wrap:anywhere}.person-row .secondary{font-size:10px;padding:9px 12px;min-height:40px}.panel-empty{padding:40px 5px;color:#a3a9b3;font-size:12px;line-height:1.9}.request-actions{display:flex;gap:12px;padding:14px 0 22px}.request-actions button{flex:1;font-size:11px}.request-block .person-row{border-bottom:0;padding-bottom:0}.notification{padding:20px 0;border-bottom:1px solid #f0f1f4;font-size:12px;line-height:1.9;width:100%;text-align:left;color:#6f7989}.notification small{display:block;color:#aab1bd;font-size:9px;margin-top:4px}.notification.unread:before{content:'';width:5px;height:5px;background:#626b78;border-radius:50%;display:inline-block;margin-right:8px}.profile-page{flex:1;overflow:auto;padding:24px;overscroll-behavior:contain}.profile-top{display:flex;justify-content:space-between;color:#969ba5;font-size:11px;margin-bottom:29px}.profile-top button{padding:0;min-height:30px}.identity{display:flex;align-items:center;gap:21px;margin:6px 0 18px}.identity>.avatar{width:86px;height:86px;font-size:30px}.identity>div{min-width:0}.identity h1,.identity h2{font-size:25px;font-weight:600;line-height:1.4;margin:0 0 9px;overflow-wrap:anywhere}.identity p{font-size:12px;line-height:1.9;color:#8d949f;white-space:pre-wrap;margin:0}.profile-meta{font-size:10px;color:#a3aab5;display:flex;gap:14px;margin-top:18px}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.profile-actions button{min-height:44px}.stats{display:flex;gap:28px;color:#9da4af;font-size:10px;margin:18px 0 20px}.stats strong{font-size:19px;color:#4a525f;font-weight:500;margin-right:6px}.feed-title{display:flex;align-items:center;justify-content:space-between;padding-top:21px;border-top:1px solid #ededf1;margin-top:18px}.feed-title h3{font-size:14px;font-weight:500;margin:0}.feed-title button{font-size:10px;color:#9fa7b4;min-height:36px}.post{padding:22px 0;border-bottom:1px solid #ededf2}.post-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:9px;color:#a6aeba}.post-top button{font-size:18px;min-height:32px;color:#a6aeba}.post p{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0;color:#586375}.post-image{display:block;width:100%;padding:0;text-align:left}.post-image img{display:block;border-radius:14px;max-height:430px;width:100%;object-fit:cover}.post-actions{display:flex;gap:22px}.post-actions button{font-size:11px;color:#9da7b6;min-height:44px;padding:4px 0}.post-actions button[aria-pressed=true]{color:#394758}.post-comment{background:#f4f6f8;border-radius:9px;padding:10px 12px;margin-top:8px}.post-comment strong{font-size:10px;color:#7d8a9f;font-weight:500}.post-comment p{font-size:11px;line-height:1.9;color:#8c98aa;margin:3px 0}.post-comment button{float:right;color:#aab3c1;font-size:9px;min-height:25px}.pending-note{font-size:10px;color:#939faf;margin:10px 0}.status-chip{font-size:9px;border-radius:5px;background:#f0f2f5;padding:4px 7px;color:#8e9aab;display:inline-block;margin-left:7px}.section-card{padding:15px 0}.section-card h3{font-size:12px;font-weight:500;color:#8e9aad}.dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 30px);border:0;border-radius:23px;padding:25px;background:#fff;color:#3f4958;overflow:auto;box-shadow:0 25px 80px #00000020}.dialog::backdrop{background:#292e3850;backdrop-filter:blur(9px)}.dialog>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:15px}.dialog h2{font-weight:600;font-size:22px;margin:0}.dialog>header button{min-width:36px;height:36px;color:#9ca6b4;font-size:22px}.dialog p{line-height:1.9}.dialog .note{font-size:11px;color:#a0aaba;line-height:1.9}.dialog form{display:grid;gap:17px}.dialog label:not(.check){font-size:11px;color:#8d9bb0;display:grid;gap:8px;line-height:1.8}.dialog input:not([type=checkbox]),.dialog textarea,.dialog select{width:100%;font-size:16px}.dialog .primary{width:100%}.dialog .upload{font-size:11px;display:block;color:#8c9aaf;margin:8px 0}.dialog input[type=file]{font-size:11px;padding:12px 0;border:0;background:none}.dialog .avatar-editor{display:flex;align-items:center;gap:16px}.dialog .avatar-editor .avatar{width:68px;height:68px;font-size:24px}.dialog .avatar-editor>div{min-width:0;flex:1}.dialog .photo-preview img{border-radius:13px;width:100%;max-height:230px;object-fit:cover}.dialog .action-list button{display:block;width:100%;text-align:left;min-height:52px;padding:14px 0;border-bottom:1px solid #f1f3f6;font-size:13px;color:#818fa3}.dialog .excerpt{font-size:12px;line-height:1.9;color:#98a5b9;white-space:pre-wrap;background:#f6f8fb;padding:14px;border-radius:13px;overflow-wrap:anywhere}.media-dialog{width:min(900px,calc(100vw - 16px));padding:15px;background:#101114;color:white}.media-dialog img{display:block;max-width:100%;max-height:80dvh;object-fit:contain;margin:auto}.media-dialog>header{margin-bottom:12px}.media-dialog h2{font-size:12px;color:#999da6}.media-dialog button{color:#fff}.admin-item{padding:20px 0;border-bottom:1px solid #eceff4}.admin-item img{border-radius:12px;max-height:200px;max-width:100%;object-fit:contain}.admin-item p{font-size:11px;line-height:1.9;overflow-wrap:anywhere;white-space:pre-wrap;color:#909eb2}.admin-item pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;line-height:1.9;color:#9da9ba}.admin-item .request-actions{flex-wrap:wrap}.admin-item button{font-size:10px}.toast{position:fixed;bottom:105px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 36px);padding:13px 19px;background:#2c3038ed;color:#fff;border-radius:14px;font-size:12px;line-height:1.8;z-index:100;box-shadow:0 5px 30px #00000013;pointer-events:none}.error-card{padding:18px;border-radius:14px;background:#f4f5f8;color:#8591a4;line-height:1.9;font-size:12px}.error-card button{display:block;min-height:40px;text-decoration:underline}.hidden,[hidden]{display:none!important}@media(min-width:800px){.main{max-width:760px;margin:auto;width:100%;border-left:1px solid #f4f5f7;border-right:1px solid #f4f5f7}.profile-page{padding:32px 55px}.timeline{padding-left:35px;padding-right:35px}.chat-intro{padding:23px 35px 15px}.composer-area{padding:13px 35px 20px}.shade{background:#20232915}.topbar{padding:0 40px}.dialog{padding:30px}.entry{margin-top:15vh}}@media(max-width:360px){.topbar{padding:0 19px;grid-template-columns:65px minmax(0,1fr) 65px}.brand strong{font-size:16px}.brand small{font-size:9px}.drawer{padding:23px}.menu-intro{gap:12px}.menu-intro>.avatar{width:61px;height:61px}.menu-intro h2{font-size:20px}.timeline{padding-left:17px;padding-right:17px}.msg{gap:8px}.msg-body{max-width:78%}.msg>.avatar{width:35px;height:35px}.bubble{padding:9px 12px}.composer-area{padding-left:17px;padding-right:17px}.identity>.avatar{width:73px;height:73px}.identity{gap:16px}.identity h1{font-size:23px}.profile-page{padding:22px}.dialog{padding:22px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.phone-code-row{display:flex;gap:10px;align-items:center}.phone-code-row input{min-width:0;flex:1}.phone-code-row button{white-space:nowrap;min-width:108px;font-size:12px}
/* People remain one row each; media always keeps its original color. */
.avatar{position:relative;isolation:isolate;line-height:1;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Apple Color Emoji','Segoe UI Emoji',sans-serif}
.avatar-fallback{position:absolute;inset:0;display:grid;place-items:center;white-space:nowrap;line-height:1;font-size:inherit;pointer-events:none}
.avatar>img{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;object-fit:cover;filter:none}
.people-list{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0}
.people-list>.person-row,.people-list>.group-invitation{width:100%;flex-shrink:0}
.person-row{flex-direction:row;flex-wrap:nowrap;min-height:78px}
.person-row>.avatar,.person-row>.group-avatar{width:44px;height:44px;min-width:44px}
.person-row .person-copy{text-align:left;padding:0;min-width:0;overflow:hidden}
.person-row .person-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-row .person-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.friend-send{min-width:64px;flex-shrink:0;font-size:11px!important;padding:10px 12px!important;min-height:44px!important}
.people-search{display:block;margin:16px 0 8px}
.people-search input{width:100%;min-width:0;font-size:16px;padding:11px 13px;border-radius:12px;background:#f5f5f7;border-color:transparent}
.people-search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.inbox-tabs{display:flex;padding:4px;background:#f3f3f5;border-radius:12px;margin:4px 0 10px;gap:3px}
.inbox-tabs>button{flex:1;min-height:36px;padding:7px;font-size:12px;color:#969ca6;border-radius:9px;white-space:nowrap}
.inbox-tabs>button[aria-pressed=true]{color:#3c4654;background:#fff;box-shadow:0 1px 4px #00000006}
.inbox-section-label{font-size:10px;color:#a1aab7;margin:22px 0 3px}
.conversation-row{gap:12px;padding:18px 0;position:relative}
.conversation-line{display:flex;gap:8px;align-items:baseline;justify-content:space-between;min-width:0}
.conversation-line strong{min-width:0;flex:1;font-size:13px}
.conversation-line time{font-size:9px;color:#b0b7c2;white-space:nowrap}
.conversation-row .conversation-excerpt{font-size:11px;line-height:1.8;color:#8e99aa;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:anywhere}
.unread-count{font-size:9px;background:#eceef1;min-width:19px;height:19px;padding:2px 5px;border-radius:12px;display:flex;align-items:center;justify-content:center;align-self:flex-start;margin-top:9px;flex-shrink:0;color:#6f7a8a}
.group-avatar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:2px;background:#ebeef2;padding:3px;width:44px;height:44px;min-width:44px;border-radius:14px;overflow:hidden;flex-shrink:0}
.group-avatar .group-tile{width:100%;height:100%;min-width:0;border-radius:5px;font-size:10px;background:#e2e6ec}
.group-avatar .group-tile:only-child{grid-column:1/-1;grid-row:1/-1;font-size:17px;border-radius:9px}
.group-avatar .group-initial{grid-row:1/-1;grid-column:1/-1;display:grid;place-items:center;font-size:18px;color:#8994a4}
.group-invitation{border:1px solid #eceef3;border-radius:15px;padding:0 13px;margin:9px 0 13px}
.group-invitation .person-row{border-bottom:0;padding-bottom:4px}
.group-invitation .request-actions{padding-bottom:13px}
.group-invitation button{min-height:40px}
.member-picker{max-height:38dvh;overflow-y:auto;overscroll-behavior:contain}
.dialog .member-choice{display:flex!important;flex-direction:row;align-items:center;gap:12px;min-height:76px;padding:12px 2px;border-bottom:1px solid #f0f2f6;cursor:pointer}
.dialog .member-choice>input{width:18px!important;height:18px;margin:0;flex-shrink:0;accent-color:#3a4049}
.member-choice>.avatar{width:42px;height:42px;min-width:42px;flex-shrink:0}
.member-choice>span:last-child{flex:1;min-width:0}
.member-choice strong{display:block;color:#59677c;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-choice small{font-size:10px;color:#a5b0c1;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}
.picker-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eff1f5;padding-top:16px}
.picker-footer span{font-size:10px;color:#a4adbd;line-height:1.8;flex:1;min-width:0}
.dialog .picker-footer>.primary{width:auto;flex-shrink:0;font-size:12px;min-width:105px;padding:11px 16px}
.group-info-head{display:flex;align-items:center;gap:16px;margin:20px 0 25px}
.group-info-head>.group-avatar{width:68px;height:68px;min-width:68px;border-radius:21px;padding:4px;gap:3px}
.group-info-head .group-tile{font-size:15px;border-radius:8px}
.group-info-head>div{min-width:0}
.group-info-head h3{font-size:20px;line-height:1.6;margin:0;color:#536177;overflow-wrap:anywhere;font-weight:550}
.group-info-head p{margin:4px 0 0;font-size:11px;color:#9eaabc}
#rename-group{display:flex;align-items:flex-end;gap:12px;margin:22px 0}
#rename-group label{flex:1;min-width:0}
#rename-group .secondary{flex-shrink:0;font-size:11px;min-height:46px}
.group-section-title{display:flex;align-items:center;justify-content:space-between;margin:25px 0 6px}
.group-section-title h3{font-size:12px;font-weight:500;margin:0;color:#8796ad}
.group-section-title button{font-size:11px;color:#8d9cb2;min-height:40px}
.group-member-list .person-row{min-height:70px;padding:13px 0}
.member-manage{min-width:44px;min-height:44px;padding:5px 0 5px 9px;flex-shrink:0}
.group-footer-actions{display:flex;justify-content:flex-end;margin-top:24px}
.back-to-inbox{font-size:11px;color:#919baa;padding:0;min-height:35px;text-align:left}
.chat-intro{padding-top:12px;padding-bottom:8px}
.chat-heading-button{width:100%;min-height:54px;padding:3px;max-width:100%;text-align:center}
.chat-heading-button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.request-gate>strong{display:block;font-size:13px;font-weight:500;color:#68778e;line-height:1.8}
.request-gate .quiet{font-size:11px;line-height:1.9;margin:7px 0 10px}
.readonly-note{font-size:11px;line-height:1.9;color:#9ba6b8}
.send-status{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:#8d96a5;padding:3px 4px 10px;line-height:1.9}
.send-status button{min-width:44px;min-height:34px;color:#606f85;padding:5px;flex-shrink:0}
.copyable-text{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;font-size:14px;line-height:1.9;color:#687990}
.panel-empty>strong{font-size:14px;font-weight:500;color:#8c96a8;line-height:1.9}
.panel-empty>p{margin:9px 0 18px;font-size:11px;line-height:2}
@media(max-width:360px){.person-row{gap:10px}.friend-send{min-width:58px;padding-left:9px!important;padding-right:9px!important}.person-row>.avatar,.person-row>.group-avatar{width:40px;height:40px;min-width:40px}.conversation-line strong{font-size:12px}.conversation-line time{font-size:8px}.dialog .picker-footer>.primary{min-width:97px;font-size:11px}.group-info-head h3{font-size:18px}#rename-group{gap:8px}#rename-group .secondary{padding:10px 12px;font-size:10px}}

.draft-label{color:#535a63;font-weight:550;margin-right:7px}

/* Readable phone typography, with the same neutral controls throughout. */
.person-row .person-copy strong,.conversation-line strong{font-size:14px;color:#292b30}
.person-row .person-copy small{font-size:11px;color:#767981;line-height:1.65}
.conversation-row{padding:15px 0}
.conversation-row .conversation-excerpt{font-size:12px;color:#73767e;line-height:1.7}
.conversation-line time{font-size:10px;color:#797c83}
.drawer-heading button{font-size:12px;color:#71747c}
.inbox-section-label{font-size:11px;color:#7b7e85;margin-top:20px}
.member-choice strong{font-size:14px;color:#34373e}
.member-choice small{font-size:11px;color:#7b7e85}
.group-section-title h3,.back-to-inbox{font-size:12px;color:#777a82}
.msg-heading{display:flex;align-items:baseline;gap:6px;min-width:0;margin-bottom:5px;line-height:1.4;color:#777b82;font-size:11px}
.msg-heading .msg-name{min-width:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:12px;font-weight:500}
.msg-heading .msg-region,.msg-heading time{flex:none;white-space:nowrap}
.msg-heading time{font-variant-numeric:tabular-nums}
.bubble{font-size:15px}
@media(max-width:360px){.person-row .person-copy strong,.conversation-line strong{font-size:13px}.person-row .person-copy small{font-size:10px}.conversation-line time{font-size:9px}}

/* Separate places for direct messages and groups, with semantic unread alerts. */
.notification-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e3484b;color:#fff!important;font-size:10px!important;font-weight:600;line-height:1;flex-shrink:0;letter-spacing:0}
.notification-badge[hidden]{display:none!important}
#mine-button{overflow:visible}
#mine-button>img,#mine-button>.avatar-fallback{border-radius:50%}
#mine-button.has-unread{outline:2px solid #e3484b;outline-offset:3px}
#mine-button .mine-unread{position:absolute;z-index:4;right:-5px;top:-5px;border:2px solid #fafafa;min-width:20px;height:20px;font-size:9px!important}
.menu-trailing{display:flex;align-items:center;gap:12px}
.menu-chevron{color:#adb0b8;font-size:16px!important}
.plain-count{font-size:12px;color:#a8acb5}
.friend-send{position:relative}
.friend-send .notification-badge{position:absolute;right:-4px;top:-6px;border:2px solid #fff}
.publish-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;background:#25262a!important;color:#fff!important;padding:13px 20px!important;min-height:46px;font-size:14px!important;font-weight:500;letter-spacing:.2px}
.drawer>.publish-action{width:100%;margin:17px 0 21px}
.compact-button,.drawer-heading .publish-action{min-height:40px;border-radius:12px;padding:10px 14px!important;font-size:12px!important;white-space:nowrap}
.menu-row{min-height:53px}
.chat-list-page{flex:1;min-height:0;overflow:auto;padding:21px 30px 35px;overscroll-behavior:contain}
.section-navigation{margin-bottom:25px;display:flex;align-items:center;justify-content:space-between}
.section-navigation button{font-size:12px;min-height:38px;padding:0;color:#7e828a}
.list-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 26px}
.list-page-heading h1{font-size:25px;font-weight:650;margin:0;color:#292b30}
.chat-list-page .people-search{margin-bottom:19px}
.chat-list-page .conversation-row{padding:19px 0;gap:15px}
.chat-list-page .conversation-line strong{font-size:15px;font-weight:550}
.chat-list-page .person-row>.avatar,.chat-list-page .person-row>.group-avatar{width:49px;height:49px;min-width:49px}
.chat-list-page .person-copy small{font-size:12px}
.chat-list-page .conversation-excerpt{margin-top:5px}
.chat-back-actions{display:flex;align-items:center;gap:18px;min-width:0}
.chat-back-actions button{font-size:12px;min-height:36px;padding:0;white-space:nowrap;color:#7d818a}
.chat-back-actions .back-to-channel{font-size:11px;color:#a0a4ac}
.photo-picker-button{padding:7px 9px;min-height:34px;align-self:center;font-size:12px;color:#6f747e;background:#e6e7eb;border-radius:11px;flex-shrink:0}
.photo-picker-button:disabled{color:#afb1b7;opacity:.55}
.attachment-preview{display:flex;align-items:center;gap:12px;background:#f6f6f8;border-radius:14px;padding:10px 12px;margin:0 0 10px}
.attachment-preview>img{width:54px;height:54px;object-fit:cover;border-radius:9px;filter:none}
.attachment-preview>span{flex:1;min-width:0}
.attachment-preview strong{font-size:12px;font-weight:500;color:#686d77;display:block}
.attachment-preview small{font-size:10px;color:#959aa4;line-height:1.8;display:block;margin-top:5px}
.attachment-preview>button{width:32px;height:32px;font-size:22px;color:#9a9da7}
.message-photo-content{max-width:236px}
.message-photo{display:block;padding:0;border:0;border-radius:13px;overflow:hidden;max-width:236px;text-align:left;background:#f1f2f5}
.message-photo img{display:block;width:100%;height:auto;max-height:290px;object-fit:contain;filter:none}
.photo-review-status{font-size:10px;line-height:1.8;color:#9b9fa7;margin:7px 1px 1px;max-width:230px;overflow-wrap:anywhere}
.photo-pending{width:200px;max-width:100%;min-height:130px;border-radius:13px;background:#f2f3f5;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:13px;color:#9196a1;gap:8px}
.photo-pending small{font-size:10px;color:#afb3bc}
.msg.self .photo-time{text-align:right}
.msg.self .message-photo-content{margin-left:auto}
#group-policy-form{padding:16px;background:#f6f7f9;border-radius:14px;margin:24px 0;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
#group-policy-form label{width:100%;font-size:12px;margin:0;color:#858b95}
#group-policy-form select{font-size:14px;padding:12px 10px;margin-top:9px;background:#fff}
#group-policy-form button{font-size:11px;min-height:38px;padding:9px 14px}
.group-request-item{padding:5px 0 20px;border-bottom:1px solid #f0f1f4}
.group-request-item .person-copy small{white-space:normal;line-height:1.8;font-size:10px}
.group-request-item .request-actions{margin-top:0}
@media(max-width:480px){.chat-list-page{padding:16px 24px 30px}.list-page-heading{margin-bottom:21px}.chat-list-page .conversation-row{padding:19px 0}.chat-list-page .conversation-line strong{font-size:14px}.chat-list-page .person-copy small{font-size:11px}.chat-list-page .conversation-line time{font-size:10px}.chat-back-actions{gap:15px}.message-photo,.message-photo-content{max-width:218px}.composer{padding-left:7px;gap:8px}.photo-picker-button{padding:6px 8px}.attachment-preview small{font-size:9px}}
@media(max-width:360px){.chat-list-page{padding-left:19px;padding-right:19px}.chat-list-page .person-row>.avatar,.chat-list-page .person-row>.group-avatar{width:43px;height:43px;min-width:43px}.chat-list-page .conversation-row{gap:11px}.chat-list-page .conversation-line strong{font-size:13px}.chat-back-actions{gap:10px}.chat-back-actions button{font-size:11px}.chat-back-actions .back-to-channel{font-size:10px}.message-photo,.message-photo-content{max-width:188px}.list-page-heading h1{font-size:23px}.drawer-heading .publish-action{padding:9px 11px!important;font-size:11px!important}.menu-row{font-size:13px}}
.app-shell{height:var(--now-height,100dvh)}
.dialog{max-height:calc(var(--now-height,100dvh) - 34px)}
.plain-count[hidden]{display:none}

/* Message controls stay light; withdrawn content becomes one quiet line. */
.msg.recall-notice,.msg.self.recall-notice{display:flex;flex-direction:row;justify-content:center;align-items:baseline;gap:8px;margin:18px 0;font-size:11px;line-height:1.8;color:#888b92;text-align:center;flex-wrap:wrap}
.recall-notice button{min-height:32px;padding:2px 3px;color:#555961;font-size:11px;text-decoration:underline;text-underline-offset:3px}
.bubble,.message-photo,.quote{-webkit-touch-callout:none}
@media(pointer:coarse){.bubble{user-select:none;-webkit-user-select:none}.msg-body{max-width:calc(100% - 92px)}}

@media(max-width:600px){.msg-body{max-width:calc(100% - 86px)}}

.channel-presence{display:inline-flex;align-items:center;justify-content:center;font-size:10px;line-height:1.5;color:#92959c;padding:2px 7px;margin-top:3px;border-radius:9px;gap:3px;min-height:23px}
.channel-presence:hover,.channel-presence:focus-visible{background:#f0f1f3;color:#555a64}
.online-privacy-note{font-size:11px;color:#9b9ea6;line-height:1.9;margin:16px 0 12px}
.online-person{padding:17px 0}
.online-person>.avatar{width:46px;height:46px;min-width:46px}
.online-self{margin-left:7px;color:#aaaeb6;font-size:10px;font-weight:400}
.online-setting{width:100%;margin-top:18px;font-size:12px}
.unread-divider{display:flex;align-items:center;gap:15px;margin:22px 0 18px;color:#8f939c;font-size:10px;line-height:1.8;white-space:nowrap;scroll-margin-top:14px}
.unread-divider:before,.unread-divider:after{content:"";height:1px;flex:1;background:#e9ebef}
.jump-latest:disabled{opacity:.65}
@media(max-width:360px){.channel-presence{font-size:9px}.online-person .friend-send{font-size:10px}}

.timeline{scrollbar-width:thin;scrollbar-color:#d8dbe1 transparent}.timeline::-webkit-scrollbar{width:4px}.timeline::-webkit-scrollbar-thumb{background:#d8dbe1;border-radius:4px}.timeline::-webkit-scrollbar-track{background:transparent}

/* Composer states remain compact and readable on narrow screens. */
.composer-note{gap:10px}
.composer-note>#composer-hint{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.chat-count{flex-shrink:0;font-size:10px;font-variant-numeric:tabular-nums;color:#9c9fa7}
.chat-count.at-limit{color:#585d67}
.send[aria-busy=true]{font-size:19px;letter-spacing:1px;line-height:1}
.send-status[data-state=sending]{color:#9296a0}
.attachment-preview>.attachment-thumbnail{display:block;flex:0 0 54px;width:54px;height:54px;padding:0;overflow:hidden;border-radius:9px;background:#eaecef;min-height:0}
.attachment-thumbnail img{display:block;width:100%;height:100%;object-fit:cover;filter:none}
.attachment-preview>.attachment-remove{flex:0 0 36px;width:36px;height:40px;min-height:40px;font-size:22px;padding:0;color:#8d929c}
.attachment-remove:disabled{opacity:.4}
.media-dialog .media-note{font-size:11px;line-height:1.8;color:#b2b5bf;margin:13px 5px 3px;text-align:center}
.reply-bar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:360px){.attachment-preview{gap:9px;padding:9px 10px}.attachment-preview strong{font-size:11px}.attachment-preview small{font-size:9px}.composer-note{gap:7px}}

/* Keep the previous sheet alive so back restores its draft, scroll and focus. */
.dialog.dialog-suspended{visibility:hidden;pointer-events:none}
.dialog.dialog-suspended::backdrop{background:transparent;backdrop-filter:none}
.dialog>header>div{min-width:0}
.dialog>header h2{overflow-wrap:anywhere}
.dialog>header .dialog-back{height:auto;min-height:32px;min-width:0;padding:0 0 5px;font-size:12px;color:#81858f;text-align:left}
.relationship-actions{align-items:center;gap:10px}
.relationship-state{font-size:12px;color:#8c9099;line-height:1.8}
.post-detail-author{display:flex;align-items:center;gap:12px;margin:18px 0 10px}
.post-detail-author .avatar{width:44px;height:44px;flex:0 0 44px}
.post-detail-author strong{display:block;font-size:14px;font-weight:550}
.post-detail-author small{display:block;color:#9599a1;font-size:11px;margin-top:5px}
.post-detail-content .post{margin:0;padding-top:12px}
.post-detail-content [data-post-detail]{display:none}
.comment-composer{margin:26px 0 4px;padding-top:20px;border-top:1px solid #efeff1}
.comment-composer label{display:block;font-size:12px;color:#80858e}
.comment-composer textarea{display:block;width:100%;margin-top:10px;min-height:100px;font-size:14px}
.comment-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.comment-composer-actions>span{font-size:10px;line-height:1.7;color:#a0a4ac}
.comment-composer-actions .primary{flex-shrink:0;min-height:42px;padding:10px 16px}
.post-comment>button{float:right;min-height:32px;font-size:10px;color:#9599a1;padding:4px 7px}
@media(max-width:360px){.comment-composer-actions{gap:8px}.relationship-actions .primary,.relationship-actions .secondary{padding:10px 13px}.post-actions{gap:14px}}
.dialog .comment-composer-actions .primary{width:auto}
.dialog .relationship-actions .primary,.dialog .profile-actions .primary{width:auto}
.post-detail-content .post{border-bottom:0;padding-bottom:0}
.comment-composer-actions>span{min-width:0;flex:1}
.dialog{scrollbar-width:none}
.dialog::-webkit-scrollbar{display:none}
.relationship-note{flex-basis:100%;margin:0 0 3px;font-size:12px;color:#858b95;line-height:1.8;overflow-wrap:anywhere}
/* Inline moment interactions: the post stays in view while people respond. */
.moment-actions{display:flex;align-items:center;gap:26px;margin-top:12px;min-height:42px}
.moment-actions>button{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:4px 0;font-size:13px;color:#858a94;font-variant-numeric:tabular-nums}
.moment-actions svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.moment-actions .is-liked{color:#30343a}
.moment-actions .is-liked svg{fill:currentColor}
.moment-likers{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:8px 0 15px}
.liker-avatars{display:flex;align-items:center;gap:4px;max-width:100%;flex-wrap:wrap}
.moment-likers .liker-avatar{width:28px;height:28px;min-width:28px;font-size:10px;border:1.5px solid white}
.liker-count{font-size:11px;color:#8c929c;min-height:32px;padding:0}
.moment-likers-list{display:flex;flex-direction:column;gap:6px;margin:10px 0 18px}
.liker-person{display:flex;align-items:center;gap:10px;min-height:44px}
.liker-person>.avatar{width:32px;height:32px;flex:0 0 32px}
.liker-person>button:not(.avatar){font-size:12px;text-align:left;min-height:40px;overflow-wrap:anywhere}
.moment-comments{margin:3px 0 0}
.moment-comment{display:flex;align-items:flex-start;gap:10px;padding:10px 0;background:none;border:0}
.moment-comment>.comment-avatar{width:34px;height:34px;flex:0 0 34px;font-size:12px;margin-top:1px}
.moment-comment-main{min-width:0;flex:1}
.comment-author{display:flex;align-items:center;gap:7px;text-align:left;padding:0;min-height:25px;font-size:11px;color:#838995;overflow-wrap:anywhere}
.comment-author-mark{font-size:9px;color:#9a9fa7;background:#f0f1f3;padding:2px 5px;border-radius:4px;white-space:nowrap}
.moment-comment-main>p{font-size:13px;line-height:1.7;color:#464b54;margin:2px 0 3px;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-meta{display:flex;align-items:center;gap:14px;font-size:10px;color:#b0b4bc;min-height:25px}
.comment-meta>button{font-size:10px;color:#aaaeb6;min-height:28px;padding:0 5px}
.moment-more{display:block;min-height:36px;margin-left:44px;padding:5px 0;font-size:11px;color:#8b919b;text-align:left}
.inline-comment-entry{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;padding:10px 13px;margin-top:12px;background:#f5f6f7;border-radius:13px;font-size:12px;color:#a3a7af;text-align:left}
.inline-comment-entry>span{font-size:10px;color:#959ba5}
.inline-comment-form,.dialog form.inline-comment-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-top:13px}
.inline-comment-field{display:flex;align-items:flex-start;flex:1;min-width:0;background:#f4f5f7;border:1px solid #edeef0;border-radius:14px;padding:5px 4px 5px 11px}
.inline-comment-form textarea{flex:1;min-width:0;display:block;width:100%;border:0;border-radius:0;padding:6px 0;background:transparent;font-size:13px;line-height:1.7;min-height:34px;max-height:120px;resize:none;box-shadow:none}
.inline-comment-form textarea:focus{outline:0}
.inline-comment-field:focus-within{border-color:#c9ccd2}
.inline-comment-close{flex:0 0 24px;min-height:32px;padding:2px 0;font-size:18px;color:#a4a9b2}
.inline-comment-form .inline-comment-send,.dialog .inline-comment-form .inline-comment-send{width:auto;flex:0 0 auto;min-height:44px;padding:10px 13px;border-radius:13px;font-size:12px}
.inline-comment-form .inline-comment-error{flex-basis:100%;font-size:11px;color:#7b818b;line-height:1.8;margin:0 0 2px}
.post-detail-content .moment-post{padding-top:0}
.post-detail-dialog .post-detail-author{margin:12px 0 0}
@media(max-width:360px){.moment-comment{gap:8px}.moment-comment>.comment-avatar{width:30px;height:30px;flex-basis:30px}.moment-more{margin-left:38px}.moment-actions{gap:23px}.moment-likers{gap:7px}.moment-likers .liker-avatar{width:25px;height:25px;min-width:25px}.liker-avatars{gap:2px}}

.inline-comment-form textarea{font-size:16px;line-height:1.6;min-height:38px;scrollbar-width:none}
.inline-comment-form textarea::-webkit-scrollbar{display:none}
.inline-comment-form textarea::placeholder{color:#a2a7b0}
.moment-comment-main>p{font-size:14px}

.activity-row{display:flex;align-items:flex-start;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}
.activity-row>.avatar{width:44px;height:44px;flex:0 0 44px}
.activity-body{flex:1;min-width:0}
.activity-name,.activity-event{display:block;text-align:left;padding:0;background:transparent;color:inherit}
.activity-name{font-weight:600;overflow-wrap:anywhere}
.activity-event{width:100%;font-size:13px;color:#63656a;line-height:1.6}
.activity-event span,.activity-event time{display:block;overflow-wrap:anywhere}
.activity-event .activity-comment{color:#25262a;margin-top:4px;white-space:pre-wrap}
.activity-event time{color:#72747a;font-size:11px;margin-top:4px}
.activity-row.unread::after{content:"";width:7px;height:7px;border-radius:50%;background:#d34545;margin-top:8px}
.liker-preview,.group-list-actions,.group-number-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.liker-chip{display:inline-flex;align-items:center;gap:5px;background:transparent;padding:2px 0;font-size:12px;max-width:100%}
.liker-chip>span:last-child{max-width:9em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.group-number-line{justify-content:space-between;padding:10px 0;margin-bottom:8px}
.group-number-line strong{font-variant-numeric:tabular-nums;letter-spacing:.05em}
.group-number-line button,.group-list-actions button{min-height:38px}
.group-list-actions{justify-content:flex-end}.list-page-heading:has(.group-list-actions){gap:8px;flex-wrap:wrap}
.group-qr{text-align:center}.group-qr svg{display:block;width:min(100%,248px);height:auto;margin:10px auto}
.group-qr small{display:block;color:#62646a;margin:6px 0 20px}
.entry-setting,.share-entry{margin-bottom:14px}

/* Group navigation and its two independent counters. */
.group-bell,.section-navigation .group-bell,.chat-back-actions .group-bell{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 6px;color:inherit;font-size:12px;white-space:nowrap}
.group-bell svg{flex-shrink:0}
.notice-dot{width:8px;height:8px;border-radius:50%;background:#d13c43}
.group-bell .notification-badge,.group-unread,[data-alert-count=groupUnread]{min-width:20px;height:20px;padding-inline:6px;background:#cb3440;font-variant-numeric:tabular-nums}
.chat-heading-button.group-heading-chip{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;width:auto;min-width:68px;max-width:100%;min-height:44px;padding:4px 18px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.group-heading-chip strong{display:block;max-width:100%}
.conversation-line .group-list-name{display:inline-block;flex:0 1 auto;background:var(--surface);border-radius:8px;padding:2px 8px;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.group-avatar:has(>.group-tile:nth-child(2):last-child){grid-template-rows:1fr}
.group-avatar:has(>.group-tile:nth-child(3):last-child)>.group-tile:first-child{grid-row:span 2}
.group-notice{padding:14px 0;border-bottom:1px solid var(--line)}
.group-notice:last-child{border-bottom:0}
.group-notice .person-row{border:0;padding:0;align-items:flex-start}
.group-notice .person-copy :is(strong,small){white-space:normal;overflow-wrap:anywhere}
.group-notice time{font-size:11px;color:var(--muted)}
.notice-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:12px}
.notice-actions button,.dialog .notice-actions .primary{width:auto;min-height:40px;padding:8px 16px;border-radius:12px}
.appearance-options{display:grid;margin-top:16px}
.appearance-options button{display:flex;gap:14px;align-items:center;min-height:62px;border-bottom:1px solid var(--line);text-align:left}
.theme-sample{width:30px;height:30px;border-radius:9px;border:1px solid #85868b}
.sample-light{background:#fafafa}.sample-dark{background:#202124}.sample-system{background:linear-gradient(90deg,#fafafa 50%,#202124 50%)}
.theme-check{margin-left:auto;opacity:0}.appearance-options [aria-pressed=true] .theme-check{opacity:1}
@media(max-width:380px){.chat-back-actions{gap:8px}.chat-back-actions .group-bell{padding-inline:2px}.chat-back-actions .group-bell>span:not(.notification-badge){display:none}}

/* Night appearance for the community. Uploaded images use their original pixels. */
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--canvas:#17181b;--panel:#202125;--surface:#2b2c31;--raised:#383a40;--ink:#f2f2f4;--muted:#b1b3bb;--line:#35363d;background:var(--canvas);color:var(--ink)}
html[data-theme=dark] body,html[data-theme=dark] .app-shell,html[data-theme=dark] .composer-area{background:var(--canvas);color:var(--ink)}
html[data-theme=dark] :is(.topbar,.drawer,.dialog){background:var(--panel);color:var(--ink)}
html[data-theme=dark] :is(.main,.topbar,.menu-row,.person-row,.feed-title,.post,.group-request-item,.group-invitation,.dialog .member-choice,.dialog .action-list button,.notification,.composer,.inline-comment-field,.jump-latest,.beta,.moment-likers .liker-avatar){border-color:var(--line)}
html[data-theme=dark] .shade,html[data-theme=dark] .dialog::backdrop{background:#08090c80}
html[data-theme=dark] .dialog.dialog-suspended::backdrop{background:transparent}
html[data-theme=dark] :is(.group-avatar,.avatar,.group-tile,.secondary,.channel-row.active,.quote,.composer,.bubble,.inline-comment-entry,.inline-comment-field,.comment-author-mark,.error-card,.status-chip,.reply-bar,.jump-latest,.attachment-preview,.photo-pending,.post-comment,.dialog .excerpt,.message-photo,.unread-count,.inbox-tabs){background:var(--surface)}
html[data-theme=dark] #group-policy-form{background:var(--surface)}
html[data-theme=dark] #group-policy-form select,html[data-theme=dark] :is(input,textarea,select,.people-search input){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.composer,.inline-comment-field) textarea,html[data-theme=dark] input[type=file]{background:transparent}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a9abb4}
html[data-theme=dark] :is(input,textarea,select):focus,html[data-theme=dark] .inline-comment-field:focus-within{border-color:#92959e}
html[data-theme=dark] input[type=checkbox]{accent-color:#cdcfd6}
html[data-theme=dark] :is(.primary,.publish-action,.send){background:var(--ink)!important;color:#1b1c20!important}
html[data-theme=dark] :is(.msg.self .bubble,.photo-picker-button,.channel-presence:hover,.inbox-tabs>button[aria-pressed=true]){background:var(--raised);color:var(--ink)}
html[data-theme=dark] .msg.deleted .bubble{background:transparent}
html[data-theme=dark] :is(.bubble,.group-info-head h3,.person-row .person-copy strong,.list-page-heading h1,.member-choice strong,.stats strong,.post p,.moment-comment-main>p,.comment-author,.moment-actions .is-liked,.activity-event .activity-comment,.attachment-preview strong,.dialog .action-list button,.panel-empty>strong,.request-gate>strong,.send-status button,.group-bell,.copyable-text){color:var(--ink)}
html[data-theme=dark] :is(.channel-button,.channel-note,.channel-row small,.brand small,.channel-presence,.chat-intro p,.chat-empty,.chat-empty strong,.chat-date,.msg-name,.msg-options,.msg-heading,.connection,.composer-note,.quote,.quiet,.muted,.note,.entry p,.entry footer,.entry .eyebrow,.entry .preview-link,.drawer footer,.drawer-back,.section-title,.profile-meta,.profile-top,.identity p,.menu-chevron,.menu-intro p,.menu-intro button.text,.drawer-heading button,.section-navigation button,.chat-back-actions button,.group-info-head p,.group-section-title h3,.group-section-title button,.group-qr small,.check,.dialog label:not(.check),.dialog>header button,.relationship-note,.relationship-state,.stats,.feed-title button,.panel-empty,.member-choice small,.picker-footer span,.menu-row .menu-trailing,.plain-count,.dialog .note,.dialog .upload,.dialog .excerpt,.post-top,.post-top button,.moment-more,.moment-actions>button,.liker-count,.comment-meta,.comment-meta>button,.pending-note,.inline-comment-entry,.inline-comment-close,.activity-event,.activity-event time,.person-row .person-copy small,.conversation-line time,.photo-review-status,.photo-pending small,.readonly-note,.post-detail-author small,.comment-author-mark,.older,.unread-divider,.jump-latest,.draft-label,.reply-bar,.online-privacy-note,.send-status,.composer-note button,.chat-count,.recall-notice button,.error-card){color:var(--muted)}
html[data-theme=dark] .msg.self .bubble{color:var(--ink)}
html[data-theme=dark] .unread-divider::before,html[data-theme=dark] .unread-divider::after{background:var(--line)}
html[data-theme=dark] .message-context-menu,html[data-theme=dark] .message-context-menu::after{background:#3c3d43}
html[data-theme=dark] .timeline{scrollbar-color:#555861 transparent}
html[data-theme=dark] #mine-button .mine-unread,html[data-theme=dark] .friend-send .notification-badge{border-color:var(--panel)}

.channel-row.channel-choice{display:block;min-height:68px;padding:12px;text-align:left}
.channel-line,.channel-excerpt{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.channel-line strong{font-size:15px;font-weight:600}
.channel-line small,.channel-excerpt small{flex:none;font-variant-numeric:tabular-nums}
.channel-excerpt{margin-top:6px;font-size:12px;color:var(--muted)}
.channel-excerpt>span,.reply-original,.reply-by strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-channel,.reply-shortcut{background:var(--surface);color:inherit;border-radius:12px}
.recent-channel{display:block;margin:16px auto;padding:10px 15px;font-size:13px}
.recent-channel span{margin-left:8px;font-size:11px;color:var(--muted)}
.reply-shortcut{margin-left:auto;min-height:36px;padding:0 10px;font-size:12px;white-space:nowrap}
.reply-shortcut[hidden]{display:none}
.channel-reply-row{display:flex;width:100%;align-items:flex-start;gap:10px;text-align:left;padding:15px 2px;border-bottom:1px solid var(--line);color:inherit}
.channel-reply-row .avatar{flex:none}
.reply-copy{display:flex;flex:1;min-width:0;flex-direction:column;align-items:stretch;gap:4px}
.reply-by{display:flex;align-items:center;gap:7px;min-width:0}
.reply-unread{width:7px;height:7px;flex:none;background:#d73943;border-radius:50%}
.reply-copy small,.reply-original,.reply-chevron{color:var(--muted)}
.reply-copy small,.reply-original{font-size:12px}
.reply-excerpt{font-size:14px;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.reply-original{display:block;padding-left:7px;border-left:2px solid var(--line)}
.reply-chevron{align-self:center;font-size:18px}
.replies-pager{display:flex;justify-content:center;gap:10px;margin:16px 0}
.msg.located-reply .bubble{outline:1.5px solid currentColor;outline-offset:3px}
.msg.located-reply:focus{outline:none}

.group-description-preview,.application-note{white-space:pre-wrap;overflow-wrap:anywhere}
.group-description-preview{font-size:14px;line-height:1.65;margin:10px 0}
.group-edit-details{margin:4px 0 12px}
.group-mute-setting{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);cursor:pointer}
.group-mute-setting strong,.group-mute-setting small{display:block}
.group-mute-setting strong{font-size:14px;font-weight:550}
.group-mute-setting small{font-size:11px;color:var(--muted);margin-top:4px}
.dialog .group-mute-setting input{appearance:none;width:42px;min-width:42px;height:26px;margin:0;padding:3px;border:0;border-radius:20px;background:#b3b4b9;cursor:pointer}
.group-mute-setting input::before{display:block;content:"";width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0003}
.dialog .group-mute-setting input:checked{background:#47494f}
.group-mute-setting input:checked::before{transform:translateX(16px)}
html[data-theme=dark] .group-mute-setting input{background:#55575f}
html[data-theme=dark] .group-mute-setting input:checked{background:#c2c4c9}
html[data-theme=dark] .group-mute-setting input:checked::before{background:#303138}
.group-mute-setting input:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.group-notice .application-note,.group-request-item .application-note{margin:6px 0;font-size:13px;line-height:1.5;color:inherit}
.entry-note-field{display:block;margin-bottom:16px}
.notification-badge.group-unread.muted-count{background:var(--surface);color:var(--muted)!important}

/* Profile cards and the two views of a single moment. */
[data-posts-feed]{display:grid;gap:12px}
[data-posts-feed] .post.moment-card{margin:0;padding:0;border:1px solid var(--line);border-radius:17px;background:var(--panel,#fff);min-width:0}
.moment-card-content{display:block;width:100%;padding:15px 16px 10px;text-align:left;color:inherit;border-radius:inherit}
.moment-card-content:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.card-stamp{display:block;margin-bottom:9px;font-size:11px;color:var(--muted)}
.moment-counts{display:flex;align-items:center;gap:16px;min-height:32px;margin-top:7px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.card-chevron{margin-left:auto;font-size:20px;line-height:1}
.moment-body{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.7}
.moment-card-content .moment-body{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.moment-card-content img{display:block;width:100%;max-height:245px;object-fit:cover;border-radius:11px}
.moment-body+img,.moment-body+.post-image{margin-top:10px}
.post-detail-content .post-image img{max-height:min(30vh,240px)}
.interaction-tabs{display:flex;gap:22px;align-items:center;margin:16px 0 9px;border-bottom:1px solid var(--line)}
.interaction-tabs button{display:inline-flex;align-items:center;gap:6px;padding:0 2px;min-height:44px;min-width:42px;color:var(--muted);border-bottom:2px solid transparent;font-size:14px}
.interaction-tabs button[aria-pressed=true][data-interaction-tab]{border-bottom-color:currentColor;color:var(--ink,#26272c);font-weight:600}
.interaction-tabs .moment-like svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
.interaction-tabs .moment-like.is-liked svg{fill:currentColor}
.interaction-tabs span{font-variant-numeric:tabular-nums}
.post .interaction-empty{margin:18px 0;color:var(--muted);font-size:13px}
.post-detail-content .inline-comment-entry,.post-detail-content .inline-comment-form{margin:7px 0 12px}
.moment-likers-list .liker-person{width:100%;text-align:left;min-height:46px;color:inherit;font-size:13px;overflow-wrap:anywhere}
.post-detail-dialog .paging-interactions{margin:0 auto;min-height:44px}
.post-detail-dialog .interaction-tabs{position:sticky;top:calc(54px + env(safe-area-inset-top));z-index:1;background:var(--panel,#fff)}

/* Keep the feed mounted below the full-page reader so returning preserves its scroll position. */
dialog.post-detail-dialog{
 --reader-inset:max(18px,calc((100% - 600px)/2));
 position:fixed;inset:0;width:100%;max-width:none;height:var(--now-height,100dvh);max-height:none;margin:0;
 padding:0 var(--reader-inset) max(24px,env(safe-area-inset-bottom));border:0;border-radius:0;
 background:var(--panel,#fff);box-shadow:none;overscroll-behavior:contain;
}
.post-detail-dialog>header{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:1fr auto 1fr;
 gap:8px;align-items:center;height:calc(54px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);
 margin:0 0 8px;border-bottom:1px solid var(--line);background:var(--panel,#fff)}
.post-detail-dialog>header .dialog-back{justify-self:start;min-height:44px;padding:0;font-size:12px}
.post-detail-dialog>header h2{grid-column:2;margin:0;font-size:16px}

.moment-comment-main .comment-body{display:block;text-align:start;color:var(--ink);font-size:14px;line-height:1.65;padding:2px 0;min-height:28px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.comment-body .comment-context{display:block;color:var(--muted,#747981);font-size:12px}
.comment-meta{gap:8px;flex-wrap:wrap;color:var(--muted,#747981);font-size:11px}
.comment-meta .comment-region::before{content:'·';margin-right:8px}
.comment-meta>button{min-height:32px;font-size:11px;color:inherit}
.reply-recipient{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-basis:100%;font-size:12px;color:var(--muted,#747981)}
.reply-recipient>span{overflow-wrap:anywhere}
.reply-recipient button{white-space:nowrap;min-height:32px;color:inherit}

.comment-options{position:fixed;inset:auto;margin:0;padding:3px 5px;border:0;border-radius:12px;background:#303034;color:white;box-shadow:0 4px 14px #0002}
.comment-options button{padding:8px 13px;min-height:38px;color:inherit;font-size:13px}
.comment-body{-webkit-touch-callout:none}
