#chat.news-feed #messages{gap:0;padding-top:0;padding-bottom:24px;scroll-behavior:auto}
#chat.news-feed #messages>.line{width:100%;max-width:680px;align-self:center;box-sizing:border-box;flex-shrink:0;min-width:0;margin:0;padding:20px 16px;border-bottom:1px solid #ffffff12;background:transparent;border-radius:0}
#chat.news-feed .message-body{width:100%;min-width:0;margin:0!important}
#chat.news-feed .message-actions{display:none!important}
#chat.news-feed .message-meta{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-bottom:9px}
#chat.news-feed .message-text{display:block;line-height:1.55;white-space:pre-wrap}
#chat.news-feed .news-notice{font-size:12px;opacity:.7;padding:10px 16px!important}
#chat.news-feed .news-source-row{display:flex;gap:9px;align-items:baseline;flex-wrap:wrap;font-size:13px;margin-bottom:10px}
#chat.news-feed .news-source{font-size:15px;color:var(--text,#eee)}
#chat.news-feed .news-host,#chat.news-feed time{color:var(--muted,#92909f);font-size:12px}
#chat.news-feed .news-source-row time{margin-left:auto;white-space:nowrap}
#chat.news-feed .news-article-link{display:block;color:inherit;text-decoration:none}
#chat.news-feed .news-title{margin:0 0 13px;line-height:1.55;font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}
#chat.news-feed .news-article-link>img{display:block;width:100%;max-height:440px;object-fit:contain;background:#0002;border:1px solid #ffffff12;border-radius:14px 14px 0 0}
#chat.news-feed .news-link-caption{padding:10px 13px;border:1px solid #ffffff12;border-radius:0 0 14px 14px;color:var(--muted,#92909f);font-size:12px;background:#ffffff03}
#chat.news-feed .news-article-link:hover .news-title{color:var(--accent,#b598db)}
.news-sources-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid #ffffff1a!important;border-radius:20px;background:transparent!important;color:var(--muted,#aaa);padding:6px 11px;font-size:12px;margin-left:8px}
.news-sources-toggle[hidden]{display:none!important}.news-sources-toggle svg{width:17px;height:17px}
.news-sources-dialog{width:min(460px,calc(100vw - 30px));box-sizing:border-box;border:1px solid #ffffff20;border-radius:18px;background:var(--zw-panel,#191720);color:var(--text,#eee);padding:20px;max-height:85dvh;overflow:auto}
.news-sources-dialog::backdrop{background:#0009}.news-dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.news-dialog-head button{background:transparent;border:0;font-size:23px}
.news-sources-dialog label{display:block;font-size:13px;margin:12px 0 8px}.news-sources-dialog form>div{display:flex;gap:8px}.news-sources-dialog input{min-width:0;flex:1;width:100%;font-size:14px}.news-sources-dialog button{white-space:nowrap}.news-source-toolbar{margin:15px 0}.news-source-toolbar button{background:transparent;border:1px solid #ffffff20;font-size:12px}.news-source-results{max-height:220px;overflow:auto;overflow-wrap:anywhere;font-size:13px;line-height:1.5;color:var(--muted,#aaa)}.news-source-results p{padding:8px 0;margin:0;border-bottom:1px solid #ffffff0b}
@media(max-width:760px){#chat.news-feed #messages>.line{padding:16px 4px}#chat.news-feed .news-title{font-size:15px}.news-sources-toggle{font-size:11px;padding:5px 8px}.news-sources-dialog{padding:16px}.news-sources-dialog button{padding:8px}.news-source-row .news-host{max-width:48%;overflow:hidden;text-overflow:ellipsis}}

#chat .conversation-head .news-sources-toggle{display:inline-flex}#chat .conversation-head .news-sources-toggle[hidden]{display:none!important}.news-source-toolbar{display:flex;gap:8px;flex-wrap:wrap}

.news-source-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #ffffff12}.news-source-card span{min-width:0;overflow-wrap:anywhere}.news-source-card button{font-size:12px;background:transparent;border:1px solid #ffffff20}

/* Limit the article width despite the general chat's important rules. */
#chat.news-feed #messages>.line.news-post{width:min(100%,640px)!important;max-width:640px!important;margin:0 auto!important;padding:20px 0!important;flex-shrink:0;border-bottom:1px solid #ffffff13!important}
#chat.news-feed .news-article .message-body{width:100%!important;margin:0!important;padding:0!important}
#chat.news-feed .news-source-row{gap:8px;margin-bottom:9px}
#chat.news-feed .news-source{font-size:15px;font-weight:700}
#chat.news-feed .news-title{font-size:16px;line-height:1.5;margin-bottom:12px}
#chat.news-feed .news-article-link>img{width:100%!important;aspect-ratio:16/9;object-fit:cover;max-height:360px!important;border-radius:14px 14px 0 0}
#chat.news-feed .news-no-image .news-link-caption{border-radius:12px}
#chat.news-feed .news-link-caption{padding:9px 12px;background:#ffffff03}
@media(max-width:760px){#chat.news-feed #messages>.line.news-post{padding:16px 0!important}#chat.news-feed .news-title{font-size:15px}#chat.news-feed .news-source-row .news-host{display:none}}

/* Owner moderation, same thin-line icon as chat actions. */
#chat.news-feed .news-media-delete{display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin:4px 0 0;padding:8px;background:transparent;border:0;color:var(--muted,#888);cursor:pointer;opacity:.65}
#chat.news-feed .news-media-delete svg{width:20px;height:20px}
#chat.news-feed .news-media-delete:hover,#chat.news-feed .news-media-delete:focus-visible{opacity:1;color:var(--accent,#a77be4)}
