/* Shared application appearance. Keep these primitives common to every current page. */
:root{--bg:#101114;--panel:#191b20;--line:#30333b;--text:#eef0f4;--muted:#a4adbc;--blue:#86aade;--red:#ffd5d8;--radius:14px;--control-radius:20px;--reading-width:960px;color-scheme:dark;font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button:disabled{opacity:.55;cursor:default}
.site-header{height:76px;padding:0 max(24px,calc((100vw - 1240px)/2));border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}.site-header .brand img{width:40px;height:40px;object-fit:contain}.site-navigation,.site-nav{display:flex;align-items:center;gap:18px;font-size:13px;color:var(--muted)}.site-header .header-label{border:0;padding:0;font-size:13px;color:var(--muted)}.site-header a:hover{color:var(--text)}
.chat-page,.user-page{width:100%;max-width:var(--reading-width);margin:30px auto 48px;padding:0 24px}.chat-page h1,.user-heading h1,.status-page h1{font-size:26px;line-height:1.4;font-weight:650;letter-spacing:-.4px}.user-heading h1{margin:0 0 8px}.chat-page .thread,.status-panel,.tracking-row{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.user-back,.feed-action,.chat-page #back,.back-to-overview,.report-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;border:1px solid #455b7b;border-radius:var(--control-radius);padding:6px 12px;background:transparent;color:var(--blue);font:500 12px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap}.user-back{margin-bottom:20px}.user-back:hover,.feed-action:hover,.report-link:hover,.back-to-overview:hover{background:#202b3b;border-color:#6f88ad}.feed-actions{flex-wrap:wrap}.stream-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:0 0 24px;padding-bottom:10px}.stream-tab{display:inline-flex;align-items:center;min-height:36px;padding:7px 15px;border:1px solid transparent;border-radius:var(--control-radius);font-size:13px;color:var(--muted)}.stream-tab[href]:hover{color:var(--text);background:var(--panel)}.stream-tab[aria-current=page]{color:#c4dafb;background:#1c2f4a;border-color:#455b7b}.feed-popout .stream-tabs{display:none}
.badge,.history-tag{display:inline-flex;align-items:center;gap:7px;border:1px solid;border-radius:var(--control-radius);padding:6px 11px;font-size:12px;line-height:1.25;font-weight:400;white-space:nowrap}.badge.deleted{background:#4d2229;border-color:#90505a;color:var(--red)}.badge.banned-users,.history-tag.ban{background:#30283b;border-color:#6e5b85;color:#dbc5f4}.badge.timed-out-users,.history-tag.timeout{background:#332c23;border-color:#796447;color:#f6d7a5}.history-tag.donation{background:#332c23;border-color:#796447;color:#f6d7a5}.history-tag.tombstone{background:#252c37;border-color:#52617a;color:#bdd4fb}
/* The overview is a compact collection, with one primary entry per stream. */
.intro{padding:26px 0 24px}.totals strong{font-size:28px}.library-toolbar{gap:14px;padding-top:20px}.library-toolbar .search{min-height:38px;border-radius:var(--control-radius);padding:8px 13px}.sort-label select{border-radius:var(--control-radius);padding:8px 32px 8px 12px}.video-list{gap:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-top:18px}.video-list:empty{display:none}.video-list .video-card{display:grid;grid-template-columns:168px minmax(0,1fr) auto;gap:18px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px;background:var(--panel);align-items:start}.video-list .video-card:last-child{border-bottom:0}.video-card .visual{padding:0;width:100%}.video-card .thumbnail-link{border-radius:8px;aspect-ratio:16/9}.video-card .thumbnail-placeholder{font-size:11px;text-align:center;padding:8px}.video-card .card-body{padding:0;min-width:0}.video-card .card-title{font-size:16px;line-height:1.45;margin:0 0 8px}.video-card .metadata{font-size:11px;gap:8px;margin:0 0 10px}.video-card .metadata>span+span::before{margin-right:8px}.video-card .channel img{width:20px;height:20px}.video-card .badges{gap:6px}.video-card .badge{padding:4px 8px;font-size:11px}.video-card .video-unavailable,.video-card .stream-availability{margin-top:10px;font-size:11px;padding:4px 8px}.video-card .scan-schedule{margin:10px 0 0;font-size:11px}.card-entry{padding-top:2px}.video-card .report-link{font-weight:500;min-height:32px;font-size:11px}.thumbnail .stream-live-label{font-size:10px}
/* The archive and user timeline share the feed's typography, colours and controls,
   while retaining dense rows for browsing many messages. */
.user-heading{margin-bottom:20px;gap:16px}.user-avatar{width:48px;height:48px;font-size:22px}.user-counts{font-size:12px;color:var(--muted)}.user-eyebrow{color:var(--muted)}.history-panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);overflow:hidden}.history-toolbar{background:var(--panel);border-bottom:1px solid var(--line);gap:10px;padding:14px;align-items:center}.history-toolbar button,#history-more{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;border:1px solid #455b7b;border-radius:var(--control-radius);padding:6px 12px;font-size:12px;background:transparent;color:var(--blue)}.history-filters{gap:5px}.history-filters button[aria-pressed=true]{background:#1c2f4a;border-color:#617da3;color:#c4dafb}.history-filters i{flex-shrink:0}.history-toolbar button:hover,#history-more:hover{background:#202b3b}#history-search{border:1px solid var(--line);border-radius:var(--control-radius);padding:8px 12px;background:var(--bg);color:var(--text);font-size:12px;min-width:160px;min-height:34px}#history-search::placeholder{color:var(--muted)}.history-stream{background:var(--panel);border-bottom:1px solid var(--line);padding:13px 18px;font-size:12px;color:var(--muted)}.history-row{grid-template-columns:112px minmax(0,1fr);gap:16px;padding:14px 18px;border-bottom:1px solid var(--line);background:transparent;font-size:14px;line-height:1.65}.history-row.moderation{background:transparent}.history-row>div{min-width:0}.history-row time{font-size:11px;color:var(--muted);padding-top:2px}.history-row .history-author{font-size:13px;color:#bdd4fb;font-weight:650}.history-row .history-author[href]:hover{text-decoration:underline}.history-row .history-tag{padding:3px 8px;font-size:11px;line-height:1.4;vertical-align:middle}.history-row .moderation-detail{display:block;margin-top:5px;color:var(--muted);font-size:12px}.history-row .tombstone{margin:6px 0 0}.history-toolbar input{flex-basis:180px}.status-tabs button{border-radius:var(--control-radius)}.status-panel,.tracking-row{padding:18px}.summary-counter{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}.status-page .tab-intro,.status-page .panel-note{color:var(--muted)}
@media(max-width:1000px){.video-list .video-card{grid-template-columns:140px minmax(0,1fr)}.card-entry{grid-column:2;padding:0}.video-card .visual{grid-row:1/3}.video-card .report-link{margin:0}.video-card .scan-status-line{gap:4px 8px}}
@media(max-width:680px){.site-header{height:66px;padding:0 18px}.site-header .brand img{width:35px;height:35px}.chat-page,.user-page{padding:0 18px;margin:24px auto 36px}.chat-page h1,.user-heading h1,.status-page h1{font-size:21px}.library-toolbar{flex-direction:row;gap:12px}.library-toolbar .search{flex-basis:100%;order:3}.library-toolbar .sort-label{margin-left:auto;font-size:11px}.library-toolbar select{max-width:165px;font-size:11px}.content-type-switch button{font-size:11px;padding:5px 10px}.video-list .video-card{grid-template-columns:90px minmax(0,1fr);padding:14px;gap:12px}.video-card .card-title{font-size:14px}.video-card .metadata{font-size:10px;gap:6px}.video-card .metadata .channel{display:none}.video-card .metadata>span+span::before{content:none}.video-card .card-body{padding:0}.video-card .badge{font-size:10px;padding:4px 7px}.video-card .duration{font-size:9px;padding:1px 3px;bottom:4px;right:4px}.video-card .scan-schedule{font-size:10px}.card-entry{grid-column:2}.history-toolbar{padding:12px;gap:10px}.history-filters{width:100%;flex-wrap:wrap}.history-row{grid-template-columns:1fr;gap:3px;padding:12px 14px}.history-row time{font-size:10px}.history-toolbar button{font-size:11px;padding:6px 10px}.history-toolbar #history-search{min-width:100px}.stream-tabs{margin-bottom:20px}.feed-actions{gap:10px}.feed-action,.user-back,.chat-page #back{font-size:12px}.history-row .moderation-detail{overflow-wrap:anywhere}}

body:has(.back-to-overview) main{max-width:var(--reading-width)}

.status-tabs{padding-bottom:10px;gap:6px}.status-tabs button{border:1px solid transparent;border-radius:var(--control-radius);padding:7px 15px;min-height:36px;font:400 13px/1.5 system-ui;color:var(--muted)}.status-tabs button[aria-selected=true]{background:#1c2f4a;border:1px solid #455b7b;color:#c4dafb}.status-tabs button:hover{background:#202b3b}

/* Stream navigation is one hierarchy: back, view switcher, secondary window action. */
.stream-toolbar{display:flex;align-items:center;gap:22px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 16px;margin:0 0 26px}.stream-toolbar .stream-tabs{display:inline-flex;align-items:center;gap:2px;padding:3px;margin:0 auto 0 0;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.stream-toolbar .stream-tab{border:0;border-radius:6px;min-height:32px;padding:6px 14px;font-size:12px;line-height:20px}.stream-toolbar .stream-tab[aria-current=page]{background:#1c2f4a;color:#d7e6ff;border:0}.stream-toolbar .stream-tab[href]:hover{background:#222b39}.stream-toolbar .user-back,.chat-page .stream-toolbar #back{border:0;border-radius:6px;background:transparent;color:var(--muted);padding:6px 0;margin:0;min-height:34px;font-weight:400;font-size:12px}.stream-toolbar .user-back:hover,.chat-page .stream-toolbar #back:hover{color:var(--text);background:transparent}.stream-toolbar #popout-feed{margin-left:auto;border-color:var(--line);border-radius:8px;color:var(--muted);background:var(--panel);padding:6px 10px;min-height:34px;font-weight:400}.stream-toolbar #popout-feed:hover{color:var(--text);background:#242b36}.feed-popout .stream-toolbar{border-bottom:0;padding-bottom:0;margin-bottom:16px}.feed-popout .stream-toolbar #popout-actions{display:flex}.stream-toolbar:has(#back[hidden]) .stream-tabs:has(#all-chat-link[hidden]){display:none}
.video-card .report-link{border:1px solid #3d4d63;border-radius:8px;background:#222d3e;color:#c5dafb;padding:7px 11px;min-height:34px;gap:10px;font-weight:500;font-size:12px}.video-card .report-link:hover{background:#2c3e58;border-color:#627da3}.video-card .report-arrow{display:inline-flex;align-items:center;flex-shrink:0}.video-card .report-arrow svg{width:15px;height:15px}.video-card .report-link:active{background:#344a69}
@media(max-width:560px){.stream-toolbar{gap:12px;margin-bottom:22px}.stream-toolbar .stream-tabs{order:3;margin:0;flex-shrink:0}.stream-toolbar:has(#popout-feed:not([hidden])) .stream-tabs{margin-right:calc(100% - 210px)}.stream-toolbar #popout-feed{order:2}.stream-toolbar #back{order:1}.stream-toolbar #popout-actions{order:4}.video-card .report-link{font-size:11px;min-height:32px}}
.feed-popout .stream-toolbar .stream-tabs{display:none}

/* Each collection entry is a single native link, with a distinct boundary. */
.video-list{gap:14px;border:0;border-radius:0;overflow:visible;background:transparent}.video-list .video-card,.video-list .video-card:last-child{grid-template-columns:168px minmax(0,1fr);border:1px solid #3a404c;border-radius:14px;padding:18px;background:var(--panel);text-decoration:none;transition:background .15s,border-color .15s}.video-list .video-card:hover{background:#1e232b;border-color:#62738e}.video-list .video-card:focus-visible{outline:2px solid var(--blue);outline-offset:4px}.video-card:hover .card-title{color:#c9dcff}.video-card .badges{display:flex;flex-wrap:nowrap;gap:7px;max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#45536b transparent;padding:0 0 3px;margin:0;align-items:center}.video-card .badges>.badge{display:inline-flex;flex-shrink:0;margin:0;padding:4px 8px;font-size:11px}.video-card .visual{grid-row:auto}.video-card .card-title{transition:color .15s}
@media(max-width:680px){.video-list{gap:12px}.video-list .video-card,.video-list .video-card:last-child{grid-template-columns:90px minmax(0,1fr);gap:12px;padding:14px}.video-card .badges>.badge{font-size:10px;padding:4px 7px}}

.overview-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.overview-footer p{margin:0;min-width:0}.overview-footer>a{flex-shrink:0;color:var(--blue);font-size:12px}.overview-footer>a:hover{text-decoration:underline;text-underline-offset:3px}

/* Detail-page badges use the same compact dimensions as overview badges. */
.chat-page .badge.badge,body:has(.back-to-overview) .badge{padding:4px 8px;font-size:11px;line-height:1.25;min-height:0;gap:7px}
@media(max-width:680px){.chat-page .badge.badge,body:has(.back-to-overview) .badge{padding:4px 7px;font-size:10px}}

/* Compact category filters and subtle event highlights. */
.history-filters button{min-height:0;padding:4px 9px;font-size:11px;line-height:1.25;border-radius:18px;border-color:#455b7b;background:transparent;color:var(--muted)}.history-filters button[aria-pressed=true]{background:#1c2f4a;border-color:#617da3;color:#c4dafb}.history-row.category-chat{border-left:3px solid transparent}.history-row.category-donations{border-left:3px solid #ae8343;background:#242119}.history-row.category-moderation{border-left:3px solid #ae6470;background:#261d24}.history-row .history-tag.donation{color:#f6d7a5;background:#332c23;border-color:#796447;font-variant-numeric:tabular-nums}

.history-filters button[data-filter]:hover{filter:brightness(1.18)}

.video-comments{display:inline-flex;align-items:center;gap:5px}.video-comments svg{flex-shrink:0}

.role-badge{display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap;border:1px solid;border-radius:12px;padding:2px 6px;font-size:10px;font-weight:400;line-height:1.3}.role-owner{background:#332c23;color:#f6d7a5;border-color:#796447}.role-moderator{background:#202f49;color:#bdd4fb;border-color:#455b7b}.role-member{background:#20332b;color:#b9ddc9;border-color:#4e7761}.role-verified{background:#30283b;color:#dbc5f4;border-color:#6e5b85}.history-row .role-badge{margin-right:7px}.history-row .history-author:has(+.role-badge){margin-right:7px}

.page-footer{display:flex;justify-content:flex-end;gap:16px}.page-footer a{font-size:12px;color:var(--blue)}.page-footer a:hover{text-decoration:underline;text-underline-offset:3px}.feed-popout .page-footer{display:none}

.vod-timeline{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:600px){.vod-timeline{grid-template-columns:1fr}}

.video-comment-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:13px}.video-replies{margin:0 0 20px 30px}.video-replies>summary{color:var(--blue);cursor:pointer;margin-bottom:12px}.video-comments-page .thread{margin-top:16px}.video-comments-page .comments-search{margin-top:20px}.video-comments-page .body-text{white-space:pre-wrap;overflow-wrap:anywhere}.video-comments-page .heading{justify-content:flex-start;gap:12px}.video-comments-page #comments-more{display:block;margin:20px auto}.video-comments-page #comments-more[hidden]{display:none}
.video-comments-page .video-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:20px;font-size:12px;color:var(--muted)}.video-comments-page .video-metadata>span{display:inline-flex;align-items:center;gap:6px}.video-comments-page .video-uploader img{border-radius:50%;object-fit:cover}.video-comments-page .video-metadata>span+span::before{content:"·";margin-right:6px;color:#69717f}

.video-comments-page #saved-count{background:#202f49;border-color:#455b7b;color:#bdd4fb}

/* Status badges share a baseline and dimensions in the comment heading. */
.video-comments-page .heading{align-items:center}
.video-comments-page .heading>.badge{display:inline-flex;align-items:center;align-self:center;margin:0;padding:4px 8px;font-size:11px;line-height:1.25;border-width:1px;min-height:0}
.video-comments-page .heading>.video-unavailable{background:#332c23;border-color:#796447;color:#f6d7a5}
@media(max-width:680px){.video-comments-page .heading>.badge{font-size:10px;padding:4px 7px}}

/* All and deleted comments share their navigation, title and reading measure. */
.comment-page{width:100%;max-width:var(--reading-width);margin:30px auto 48px;padding:0 24px}
.comment-page .comment-toolbar{display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding-bottom:16px;margin-bottom:26px;border-bottom:1px solid var(--line)}
.comment-page .comment-toolbar .back-to-overview,.comment-page .comment-toolbar #back{margin:0;border:0;border-radius:6px;background:transparent;color:var(--muted);padding:6px 0;min-height:34px;font-size:12px;font-weight:400}
.comment-page h1{font-size:26px;line-height:1.4;font-weight:650;letter-spacing:-.4px;margin:0 0 22px}
.comment-page .content-type-icon{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.25em;margin:0 .45em 0 0;padding:0;border:0;background:transparent;color:#b5c4dc;line-height:1}.comment-page .content-type-icon svg{display:block;width:100%;height:100%}
.comment-page .video-metadata{margin:-8px 0 22px}
.comment-page .heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:22px}
.comment-page .thread{width:100%;max-width:calc(75ch + 98px);margin-left:auto;margin-right:auto;padding:20px}
.comment-page .thread .body>p,.comment-page .thread .body-text{max-width:75ch}
@media(max-width:680px){.comment-page{padding:0 18px;margin:24px auto 36px}.comment-page h1{font-size:21px}.comment-page .thread{padding:16px;max-width:calc(75ch + 90px)}}

.comment-page .video-comment-actions{margin-top:12px}
.comment-page .video-replies{margin-top:16px}
.comment-page .video-replies>.chat-message,.comment-page .reply-list>article{margin:0}
.comment-page .video-replies>.chat-message+.chat-message,.comment-page .reply-list>article+article{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}

.comment-page .sort-label{display:inline-flex;align-items:center;gap:8px;margin-left:auto;font-size:12px;color:var(--muted)}
.comment-page .sort-label select{font:inherit;line-height:1.5;min-height:34px;padding:7px 12px;border:1px solid #3a3d45;border-radius:20px;background:#1c1e24;color:var(--text);max-width:100%}
@media(max-width:680px){.comment-page .sort-label{margin-left:0}}

/* Search and sorting align with the centred comment cards. */
.comment-page .comment-controls{display:flex;align-items:center;gap:24px;width:100%;max-width:calc(75ch + 98px);margin:0 auto 16px}
.comment-page .comment-controls .comments-search{flex:1 1 0;min-width:0;width:auto;max-width:none;margin:0}
.comment-page .comment-controls .sort-label{flex:0 0 auto;margin:0;white-space:nowrap}
@media(max-width:680px){.comment-page .comment-controls{flex-wrap:wrap;gap:12px;max-width:calc(75ch + 90px)}.comment-page .comment-controls .comments-search{flex-basis:100%;width:100%}.comment-page .comment-controls .sort-label{margin-left:auto}}

.comment-page .comment-controls .search{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.comment-page .comment-controls .search svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:var(--muted);stroke-width:1.8}
.comment-page .comment-controls .search input{width:100%;min-width:0;padding:0;border:0;background:transparent;color:var(--text);font:13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;outline:0}
.comment-page .comment-controls .search:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.comment-page .comment-controls .search input::placeholder{color:var(--muted)}

/* Match the overview's controls to the squared archive controls. */
.library-toolbar .content-type-switch{border-radius:9px}
.library-toolbar .content-type-switch button{border-radius:6px}
.library-toolbar .search{border-radius:9px}

/* The whole comment page follows the same column as its cards and controls. */
body main.comment-page{max-width:calc(75ch + 146px)}
@media(max-width:680px){body main.comment-page{max-width:calc(75ch + 126px)}}

/* Shared rankings preserved on the unified comments page. */
.ranking-popover{position:relative}.ranking-trigger{display:grid;place-items:center;width:32px;height:32px;border:1px solid #3a3d45;border-radius:50%;background:#191b20;color:#86aade;cursor:pointer}.ranking-trigger:hover,.ranking-trigger[aria-expanded=true]{background:#263247}.top-users{position:absolute;z-index:10;top:100%;left:-170px;box-sizing:border-box;width:min(640px,calc(100vw - 48px));max-width:calc(100vw - 48px);margin:0;padding:16px;background:#191b20;border:1px solid #3a3d45;border-radius:12px;box-shadow:0 10px 30px #0006}.top-users h2{font-size:14px;font-weight:600;margin:0 0 10px;color:#bec4d0}.top-users-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:10px;list-style:none;padding:0;margin:0}.top-users-list li{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;min-height:64px;height:64px;box-sizing:border-box;padding:9px 12px;border:1px solid #30333b;border-radius:9px;background:#191b20}.top-user-medal{font-size:22px;flex-shrink:0}.top-users-list li>div{min-width:0}.top-users-list strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.5}.top-users-list li div>span{display:block;font-size:11px;line-height:1.5;white-space:nowrap;color:#9a9fab;margin-top:3px}.ranking-comment-toggle{display:flex;align-items:center;gap:8px;width:100%;height:100%;padding:0;background:transparent;border:0;border-radius:8px;color:inherit;font:inherit;text-align:left;cursor:pointer}.top-liked-list li:has(.ranking-comment-toggle:hover),.top-liked-list li:has(.ranking-comment-toggle[aria-expanded=true]){background:#263247}.ranking-comment-toggle>div{min-width:0;flex:1}.ranking-comment-preview{margin-top:12px;padding:12px;border:1px solid #3a3d45;border-radius:9px;font-size:12px}.ranking-comment-preview p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0;max-height:260px;overflow:auto}.ranking-divider{border:0;border-top:1px solid #3a3d45;margin:16px 0}.top-users-note{font-size:11px;color:#9a9fab;margin-top:8px}@media(max-width:480px){.top-users-list{gap:6px}.top-users-list li{height:90px;min-height:90px;flex-direction:column;align-items:flex-start;gap:5px;padding:9px 8px}.top-users-list li>div{width:100%}.top-user-medal{font-size:20px}.top-liked-list li{padding:0}.ranking-comment-toggle{flex-direction:column;align-items:flex-start;gap:5px;padding:0}.ranking-comment-toggle>div{width:100%}}

.comment-page .comment-view-selector{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.comment-page .comment-view-selector button{border:0;border-radius:6px;min-height:32px;padding:6px 14px;font-size:12px;line-height:20px;background:transparent;color:var(--muted);font-weight:400;cursor:pointer}
.comment-page .comment-view-selector button[aria-pressed=true]{background:#1c2f4a;color:#d7e6ff}.comment-page .comment-view-selector button:hover{color:var(--text)}
.comment-page .uploader-name{color:#c0ddff;background:#1b2d45;border-radius:4px;padding:1px 5px;line-height:1.4}
.comment-page .uploader-badge{display:inline-block;flex:0 0 26px;width:26px;height:26px;object-fit:contain;image-rendering:pixelated;vertical-align:middle}
.comment-page #comments-status:empty{display:none}

.comment-page .ranking-trigger{display:grid;place-items:center;width:32px;height:32px;border:1px solid #3a3d45;border-radius:50%;background:#191b20;color:#86aade;padding:0}
.comment-page .ranking-comment-toggle{display:flex;align-items:center;gap:8px;width:100%;height:100%;padding:0;background:transparent;border:0;border-radius:8px;color:inherit;font:inherit;text-align:left;cursor:pointer}

/* Stream views use the comment archive's column, navigation and cards. */
.comment-page .stream-view-selector{display:inline-flex;align-items:center;gap:2px;padding:3px;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.comment-page .stream-view-selector .stream-tab{border:0;border-radius:6px;min-height:32px;padding:6px 14px;font-size:12px;line-height:20px;font-weight:400;background:transparent;color:var(--muted)}
.comment-page .stream-view-selector .stream-tab[aria-current=page]{background:#1c2f4a;color:#d7e6ff}
.stream-feed-page #chat-heading{gap:8px}.stream-feed-page .event-selector{font:400 12px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;display:inline-flex;align-items:center;min-height:34px;border:1px solid;border-radius:6px;padding:6px 10px;cursor:pointer}

.stream-feed-page .stream-availability{margin:0}.stream-archive-page .user-heading{display:block;margin:0 0 22px}.stream-archive-page .user-heading h1{margin:0 0 22px}.stream-archive-page .user-counts{font-size:12px;color:var(--muted)}.stream-archive-page .video-metadata:empty{display:none}
.stream-archive-page .history-panel{border:0;border-radius:0;background:transparent;overflow:visible}.stream-archive-page .history-toolbar{display:flex;align-items:flex-start;gap:16px;padding:0;margin:0 0 16px;border:0;background:transparent}.stream-archive-page .history-filters{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.stream-archive-page .history-filters button{font-size:12px;border-radius:6px;min-height:32px;padding:6px 12px}.stream-archive-page .history-toolbar .comment-controls{flex-basis:100%;margin:0}.stream-archive-page .history-toolbar .search{flex:1 1 0}.stream-archive-page #history-refresh{border-radius:8px;min-height:34px;border-color:var(--line);background:var(--panel);color:var(--blue)}
.stream-archive-page .history-row{display:flex;gap:16px;margin:0;padding:0;border:0;background:transparent;font-size:inherit;line-height:1.55}.stream-archive-page .history-row .history-text{white-space:normal}.stream-archive-page .history-row .body-text{white-space:pre-wrap;margin:5px 0 0;line-height:1.5}.stream-archive-page .history-row .byline{font-size:13px;gap:9px}.stream-archive-page .history-row .history-author{margin:0;font-size:13px;color:var(--text);font-weight:650}.stream-archive-page .history-row time{padding:0;font-size:12px}.stream-archive-page .history-row .history-tag{margin:0;padding:4px 8px;font-size:11px;line-height:1.25}.stream-archive-page #history-status{padding:0;margin:12px 0}
.feed-popout .stream-view-selector,.feed-popout #stream-view-heading{display:none!important}
@media(max-width:680px){.stream-feed-page .event-selector{font-size:11px;padding:5px 8px}.stream-archive-page .history-filters{width:auto;max-width:100%;flex-wrap:wrap}.stream-archive-page .history-toolbar .comment-controls .search{flex-basis:100%}.stream-archive-page #history-refresh{margin-left:auto}}

.stream-archive-page .comment-controls #history-search{width:100%;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;font:13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text)}

/* Category selectors use the same neutral appearance in every archive. */
.history-filters button[data-filter]{background:transparent;color:var(--muted);border-color:transparent}
.history-filters button[data-filter][aria-pressed=true]{background:#1c2f4a;color:#d7e6ff;border-color:transparent}

.stream-archive-page .heading{align-items:center;gap:12px}.stream-archive-page .heading .history-filters{flex:0 1 auto;margin:0}

/* Views and event filters share one row; colours belong to event badges. */
.stream-feed-page .feed-selector-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 22px}
.stream-feed-page .feed-selector-row>.heading{margin:0}
.stream-feed-page #chat-heading{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.stream-feed-page #chat-heading .event-selector{min-height:32px;padding:6px 12px;border:0;border-radius:6px;font-size:12px;line-height:20px;background:transparent;color:var(--muted);font-weight:400}
.stream-feed-page #chat-heading .event-selector[aria-pressed=true]{background:#1c2f4a;color:#d7e6ff}
.stream-feed-page .video-metadata .stream-availability{padding:3px 8px;font-size:11px;line-height:1.25}
.stream-feed-page .feed-availability{margin:0 0 14px}
@media(max-width:680px){.stream-feed-page #chat-heading .event-selector{padding:6px 10px;font-size:11px}}

/* Overview badges share a neutral appearance across counts and statuses. */
.video-list .video-card .badge,.video-list .video-card .badge:hover{background:#24262b;border-color:#464b55;color:var(--muted)}

/* Independent event filters visibly show their selected state. */
.stream-feed-page #chat-heading .event-selector{gap:7px}
.stream-feed-page #chat-heading .event-selector::before{content:"";display:block;box-sizing:border-box;flex:0 0 14px;width:14px;height:14px;border:1px solid #8794a7;border-radius:3px;background:transparent}
.stream-feed-page #chat-heading .event-selector[aria-pressed=true]::before{border-color:#86aade;background:#2c4c76 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7 2.5 2.5 5-5' fill='none' stroke='%23eef4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px 14px no-repeat}

/* Matching stream and VOD archives have independently clickable halves. */
.video-list .paired-stream-vod{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #3a404c;border-radius:14px;overflow:hidden;background:var(--panel)}
.video-list .paired-stream-vod>.video-card,.video-list .paired-stream-vod>.video-card:last-child{display:grid;grid-template-columns:96px minmax(0,1fr);align-content:start;gap:10px 14px;padding:18px;margin:0;border:0;border-radius:0;height:100%;min-width:0}
.video-list .paired-stream-vod>.video-card.pair-vod{border-left:1px solid #3a404c}
.paired-stream-vod .card-body{display:contents}.paired-stream-vod .visual{grid-column:1;grid-row:1/4}.paired-stream-vod .paired-kind{grid-column:2;color:var(--muted);font-size:11px;line-height:1.3;font-weight:500}
.paired-stream-vod .card-title,.paired-stream-vod .metadata{grid-column:2;margin:0}.paired-stream-vod .badges,.paired-stream-vod .scan-schedule{grid-column:1/-1;margin:0}.paired-stream-vod .badges{flex-wrap:wrap;overflow:visible;padding-bottom:0}
.video-list .paired-stream-vod>.video-card:hover{background:#20252e}.video-list .paired-stream-vod>.video-card:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
@media(max-width:900px){.video-list .paired-stream-vod{grid-template-columns:minmax(0,1fr)}.video-list .paired-stream-vod>.video-card.pair-vod{border-left:0;border-top:1px solid #3a404c}}
@media(max-width:680px){.video-list .paired-stream-vod>.video-card,.video-list .paired-stream-vod>.video-card:last-child{grid-template-columns:90px minmax(0,1fr);gap:10px 12px;padding:14px}}

.video-card .metadata .video-likes,.video-card .metadata .video-comments{display:inline-flex;align-items:center;gap:5px;line-height:1.4}
.video-card .metadata .video-likes svg,.video-card .metadata .video-comments svg{display:block;flex:0 0 14px;width:14px;height:14px;transform:translateY(1px)}

.viewers-page{max-width:1240px;margin:30px auto 48px;padding:0 24px}.viewers-title{display:flex;align-items:center;gap:16px;margin-bottom:20px}.viewers-title h1{margin:0;font-size:26px}.viewers-title>span,#viewer-status,.viewer-pagination{font-size:12px;color:var(--muted)}.viewers-controls{display:flex;align-items:center;gap:16px;margin-bottom:18px}.viewers-controls .search{flex:1;min-width:0;max-width:none;border-radius:9px;min-height:42px}.viewers-page button{font:inherit;cursor:pointer}.viewers-controls>button,.viewer-pagination button{font-size:12px;border:1px solid var(--line);border-radius:8px;padding:7px 12px;background:var(--panel);color:var(--blue)}#viewer-status:empty{display:none}.viewer-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.viewer-table{border-collapse:collapse;width:100%;font-size:13px;min-width:650px}.viewer-table th{font-weight:500;color:var(--muted);text-align:left;background:#202329}.viewer-table td,.viewer-table th{padding:13px 16px;border-bottom:1px solid var(--line)}.viewer-table tbody tr:last-child td{border-bottom:0}.viewer-table th button{padding:0;background:none;border:0;color:inherit;font:inherit}.viewer-table .numeric{text-align:right;font-variant-numeric:tabular-nums}.viewer-table tbody tr:hover{background:#20252d}.viewer-identity{display:flex;align-items:center;gap:10px;min-width:0}.viewer-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;overflow:hidden;background:#385c83;color:white;font-size:13px}.viewer-avatar img{width:100%;height:100%;object-fit:cover}.viewer-name{font-weight:600;overflow-wrap:anywhere}.viewer-name[href]:hover{text-decoration:underline}.viewer-badges{display:flex;flex-wrap:wrap;gap:5px}.viewer-banned{background:#30283b;color:#dbc5f4;border-color:#6e5b85}.viewer-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}.viewer-pagination>div{display:flex;gap:8px}.overview-footer .footer-links{display:flex;align-items:center;gap:18px;font-size:12px;color:var(--blue)}
@media(max-width:680px){.viewers-page{padding:0 18px;margin-top:24px}.viewers-title h1{font-size:21px}.viewer-table td,.viewer-table th{padding:11px 12px}}

.video-card .metadata .content-kind-holder{display:inline-flex;align-items:center}
.video-card .metadata .content-kind{font-size:10px;line-height:1.25;padding:2px 6px}
.paired-stream-vod .visual{grid-row:1/3}

.feed-status-line{display:flex;align-items:baseline;flex-wrap:wrap;margin:0 0 16px;gap:0;color:var(--muted)}
.feed-status-line>p{margin:0}.feed-status-line>p:empty{display:none}.feed-status-line #ban-status:not(:empty)::before{content:"·";margin:0 8px;color:#69717f}

/* Shared video details appear once; only the archive data is divided. */
.video-list .combined-stream-vod{cursor:default;background:var(--panel);border-color:#3a404c}
.video-list .combined-stream-vod:hover{background:var(--panel);border-color:#3a404c}.combined-stream-vod:hover .card-title{color:var(--text)}
.combined-panels{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}
.combined-panel{min-width:0;display:block;padding:14px 16px 0;text-decoration:none;border-radius:0 0 6px 6px;color:inherit;transition:background .15s}.combined-panel:first-child{padding-left:0}.combined-panel+.combined-panel{border-left:1px solid var(--line)}.combined-panel:hover{background:#222730}.combined-panel:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.combined-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.combined-arrow{color:var(--blue);font-size:15px}.combined-panel .badges{flex-wrap:wrap;overflow:visible}.combined-panel .scan-schedule{margin-top:10px}.combined-panel .content-kind{padding:3px 7px;font-size:11px}
@media(max-width:680px){.combined-panels{grid-template-columns:minmax(0,1fr)}.combined-panel,.combined-panel:first-child{padding:12px 0}.combined-panel+.combined-panel{border-left:0;border-top:1px solid var(--line)}}

.video-card .card-title .type-title-badge{font-size:10px;font-weight:400;line-height:1.25;padding:3px 6px;margin-right:8px;vertical-align:middle}
.video-card .card-title .live-title-icon{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.22em;margin-right:8px;color:#ff9ca8}.live-title-icon svg{display:block;width:100%;height:100%}

.stream-feed-page #chat-heading{padding:0;border:0;background:transparent;gap:6px}

/* Keep viewer identity badges inline with the original theme. */
.viewer-identity{flex-wrap:wrap}.viewers-page .uploader-name{color:#c0ddff;background:#1b2d45;border-radius:4px;padding:1px 5px}.viewers-page .uploader-badge{width:22px;height:22px;flex:0 0 22px;object-fit:contain;image-rendering:pixelated}

/* Shared darker blue selection and focus palette. */
:root{--accent-fill:#1c2f4a;--accent-border:#3c5c87;--accent-text:#d7e6ff}
.content-type-switch button[aria-pressed=true]{background:var(--accent-fill);border-color:var(--accent-border);color:var(--accent-text)}

/* Align title labels to the first text line and metadata icons to their counts. */
.video-card .card-title>span{display:flex;align-items:flex-start;gap:8px}
.video-card .card-title .type-title-badge{flex:0 0 auto;margin:2px 0 0;vertical-align:initial}
.video-card .card-title .live-title-icon{flex:0 0 1.15em;margin:2px 0 0}
.video-card .metadata .video-likes,.video-card .metadata .video-comments{align-items:center;line-height:1}
.video-card .metadata .video-likes svg,.video-card .metadata .video-comments svg{transform:none;align-self:center}
@media(max-width:680px){.video-card .card-title .type-title-badge{margin-top:1px}}

.user-page #user-name{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.user-page #user-name .role-badge{font-size:11px;font-weight:400}.user-page #user-name .uploader-badge{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}.user-page #user-name .uploader-name{color:#c0ddff;background:#1b2d45;border-radius:4px;padding:1px 5px}

/* User history controls match the comment and stream archives. */
.user-history-page .user-back{border:0;border-radius:6px;padding:6px 0;background:transparent;color:var(--muted);font-size:12px;font-weight:400}
.user-history-page .history-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.user-history-page .history-filters{display:inline-flex;align-items:center;flex:0 0 auto;width:auto;gap:2px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.user-history-page .history-filters button{border:0;border-radius:6px;min-height:32px;padding:6px 12px;font-size:12px;line-height:20px;font-weight:400}
.user-history-page .user-history-search{display:flex;align-items:center;flex:1 1 220px;gap:12px;min-width:0;min-height:42px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.user-history-page .user-history-search svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:var(--muted);stroke-width:1.8}
.user-history-page #history-search{flex:1;min-width:0;min-height:0;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);font-size:13px;outline:0}
.user-history-page .user-history-search:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.user-history-page #history-refresh,.user-history-page #history-more{border:1px solid var(--line);border-radius:8px;min-height:42px;padding:8px 12px;background:var(--panel);color:var(--blue)}
@media(max-width:680px){.user-history-page .history-filters{flex-wrap:wrap;max-width:100%}.user-history-page .user-history-search{flex-basis:calc(100% - 90px)}}

/* Center profile badges on the username glyphs rather than the heading line box. */
.user-page #user-name .profile-user-name{line-height:1.15}.user-page #user-name .role-badge,.user-page #user-name .uploader-badge{align-self:center;position:relative;top:.08em}

/* User history uses independent archive cards and a standalone control row. */
.user-history-page .history-panel{border:0;border-radius:0;background:transparent;overflow:visible}
.user-history-page .history-toolbar{padding:0;margin-bottom:20px;border:0;background:transparent}
.user-history-page .history-stream{padding:10px 0;margin:8px 0 12px;border:0;background:transparent}
.user-history-page .thread .history-row{display:flex;gap:16px;margin:0;padding:0;border:0;background:transparent}
.user-history-page .history-row .history-text{white-space:normal;min-width:0}
.user-history-page .history-row .body-text{white-space:pre-wrap;margin:6px 0 0;line-height:1.55}
.user-history-page .history-row .byline{font-size:13px;gap:9px}
.user-history-page .history-row time{padding:0}
.user-history-page .history-row.moderation{border-left:0}

/* The selected viewer is identified once, above their compact history table. */
.user-history-table-wrap{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--panel)}
.user-history-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
.user-history-table .history-time-column{width:150px}
.user-history-table th,.user-history-table td{text-align:left;padding:13px 16px;vertical-align:top;border-bottom:1px solid var(--line)}
.user-history-table thead th{font-size:11px;font-weight:500;color:var(--muted)}
.user-history-page .user-history-table .history-stream{margin:0;padding:0;background:#20232a}
.user-history-table .history-stream th{font-size:12px;font-weight:600;padding:12px 16px;color:var(--muted)}
.user-history-page .user-history-table .history-row{display:table-row;background:transparent;border-left:0;font-size:13px}
.user-history-table .history-time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.user-history-table .history-content{overflow-wrap:anywhere}
.user-history-table .body-text{margin:0;white-space:pre-wrap;line-height:1.55}
.user-history-table .history-tag+.body-text{margin-top:6px}
.user-history-table .moderation-detail{margin-top:6px;font-size:12px;color:var(--muted)}
.user-history-table tbody tr:last-child td{border-bottom:0}
@media(max-width:680px){.user-history-table .history-time-column{width:105px}.user-history-table th,.user-history-table td{padding:11px 12px}}

/* Keep timestamps and message content centered in each user-history row. */
.user-history-page .user-history-table .history-row>td{vertical-align:middle}.user-history-page .user-history-table .history-row .body-text{margin:0;line-height:1.55}.user-history-page .user-history-table .history-row .history-tag+.body-text,.user-history-page .user-history-table .api-message-context .body-text{margin-top:6px}.user-history-page .user-history-table .history-time time{display:block;line-height:1.55}

/* All saved chat uses the same compact table; stream history includes the viewer. */
.stream-history-table .history-viewer-column{width:230px}
.stream-archive-page .user-history-table .history-row{display:table-row;border:0;background:transparent;font-size:13px}
.user-history-table .history-row>td{vertical-align:middle}
.user-history-table .history-row .body-text{margin:0;line-height:1.55}
.user-history-table .history-row .history-tag+.body-text,.user-history-table .api-message-context .body-text{margin-top:6px}
.user-history-table .history-time time{display:block;line-height:1.55;padding:0;font-size:11px}
.history-viewer{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.history-viewer .avatar{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:50%;overflow:hidden;background:#385c83;color:white;font-size:12px}
.history-viewer .avatar img{width:100%;height:100%;object-fit:cover}
.history-viewer .history-author{font-size:12px;overflow-wrap:anywhere}
.history-viewer .uploader-badge{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
.stream-archive-page .history-viewer .uploader-name{color:#c0ddff;background:#1b2d45;border-radius:4px;padding:1px 5px}
@media(max-width:680px){.stream-history-table .history-viewer-column{width:145px}.stream-history-table .history-time-column{width:88px}.stream-history-table td,.stream-history-table th{padding:10px 8px}.history-viewer{gap:4px}.history-viewer .avatar{display:none}}

/* Keep the shared stream header and navigation stationary between views. */
html{scrollbar-gutter:stable}
.comment-page .stream-page-heading{display:block;margin:0 0 22px}
.comment-page .stream-page-heading h1{margin:0 0 22px;font-size:26px;line-height:1.4;font-weight:650;letter-spacing:-.4px}
.comment-page .stream-page-heading .video-metadata{margin:-8px 0 22px}
.comment-page .stream-page-heading .feed-status-line,.comment-page .stream-page-heading .user-counts{margin:0;min-height:20px;font-size:12px;line-height:20px;color:var(--muted)}
.comment-page .stream-page-heading .feed-status-line>p{margin:0;font-size:12px;line-height:20px}
.stream-archive-page>.heading,.stream-feed-page .feed-selector-row{min-height:40px;margin:0 0 22px;gap:12px}
.stream-archive-page .history-toolbar{margin:0 0 16px}
.stream-archive-page .history-toolbar .comment-controls{max-width:none;margin:0}
.stream-feed-page #feed-search-controls{max-width:none;margin:0 0 16px}
@media(max-width:680px){.comment-page .stream-page-heading h1{font-size:21px}}

/* Compact chat lines keep the author beside the text instead of a fixed viewer column. */
.stream-history-table .history-time-column{width:68px}
.stream-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.stream-archive-page .stream-history-table .history-row>td{padding:6px 10px;border-bottom:0;vertical-align:baseline}
.stream-archive-page .stream-history-table .history-row{font-size:13px;line-height:1.6}
.stream-history-table .history-content .history-viewer{display:inline;white-space:normal}
.stream-history-table .history-viewer>*{vertical-align:middle;margin-right:6px}
.stream-history-table .history-viewer .history-author{font-size:13px}
.stream-history-table .history-row .body-text{display:inline;white-space:pre-wrap;line-height:1.6}
.stream-history-table .history-row .history-tag{margin-right:6px;padding:2px 6px;font-size:10px}
.stream-history-table .history-time time{white-space:nowrap;color:#828b9c;font-size:11px}
.stream-history-table .history-row[data-href]{cursor:pointer}
.stream-history-table .history-row[data-href]:hover{background:#222832}
.stream-history-table .history-row[data-href]:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.user-history-table .history-row.moderation{background:#2a2029}
.user-history-table .moderation .history-content{border-left:2px solid #815060}
.user-history-table .moderation-action{font-size:11px;color:#ee9ca8;margin-right:7px}
.user-history-table .moderation .moderation-detail{display:inline;margin:0 6px 0 0;font-size:12px;color:var(--muted)}
.user-history-table .moderation-last-message{font-size:13px;color:var(--text);white-space:pre-wrap}
@media(max-width:680px){.stream-history-table .history-time-column{width:60px}.stream-archive-page .stream-history-table .history-row>td{padding:5px 7px}}

.stream-archive-page .stream-history-table .history-row.moderation,.user-history-page .user-history-table .history-row.moderation{background:#2a2029}

/* Inline identities and message text share a baseline and an explicit gap. */
.stream-archive-page .stream-history-table .history-content>.history-viewer{display:inline;vertical-align:baseline;margin-right:7px;line-height:inherit}
.stream-archive-page .stream-history-table .history-viewer>.history-author{vertical-align:baseline;margin-right:0;line-height:inherit}
.stream-archive-page .stream-history-table .history-viewer>.role-badge{vertical-align:middle;margin-left:5px;margin-right:0}
.stream-archive-page .stream-history-table .history-viewer>.uploader-badge{vertical-align:middle;margin-left:5px;margin-right:0}
.stream-archive-page .stream-history-table .history-content>.body-text{vertical-align:baseline;line-height:inherit}

/* Read and load older chat inside one stable scrolling region. */
.user-history-table-wrap{height:clamp(320px,65vh,720px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.user-history-table thead th{position:sticky;top:0;z-index:2;background:var(--panel)}
.user-history-table-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:680px){.user-history-table-wrap{height:60vh;min-height:260px}}

.live-feed-scroll{height:clamp(320px,65vh,720px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:8px}.live-feed-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.live-feed-scroll:has(#chat-messages:empty){display:none}@media(max-width:680px){.live-feed-scroll{height:60vh;min-height:260px}}

/* Detail navigation shares a compact left rail instead of a separate top row. */
.page-shell{--page-column:calc(75ch + 98px);display:grid;grid-template-columns:160px minmax(0,1fr);gap:40px;max-width:calc(var(--page-column) + 248px);margin:30px auto 48px;padding:0 24px;align-items:start}
.page-shell.wide-page-shell{--page-column:1040px}
.page-shell>main,.page-shell>main.comment-page{width:100%;max-width:none;margin:0;padding:0;min-width:0}
.page-navigation{position:sticky;top:20px;min-width:0}
.page-navigation .stream-toolbar,.page-navigation .comment-toolbar,.page-navigation .feed-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0;padding:0;border:0}
.page-navigation .user-back,.page-navigation #back{display:inline-flex;align-items:center;min-height:34px;margin:0;padding:6px 0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:12px;font-weight:400}
.page-navigation #popout-feed{margin:0;padding:6px 0;border:0;background:transparent;color:var(--muted)}
.page-shell main>h1,.page-shell .viewers-title h1{margin-top:0}
.comment-page h1>.content-type-icon{display:inline-block;vertical-align:-.12em;width:1.05em;height:1.05em;margin-right:.4em;color:#b5c4dc;line-height:1}
.comment-page h1>.content-type-icon svg{display:block;width:100%;height:100%}
.comment-page h1>.content-type-icon.is-live{color:#ff9ca8}
.stream-archive-page #user-name{display:block}
.stream-history-table .history-row{cursor:default}
.stream-history-table .history-author[href]{cursor:pointer}
.stream-history-table .history-author[href]:hover{color:var(--blue);text-decoration:underline}
.feed-popout .page-shell{display:block;max-width:none;margin:12px auto;padding:0 14px}
.feed-popout .page-navigation{position:static;margin:0 0 12px}
.feed-popout .page-navigation #back,.feed-popout .page-navigation #popout-feed{display:none!important}
.feed-popout .page-navigation .feed-actions{flex-direction:row;justify-content:flex-end}
@media(max-width:900px){.page-shell{grid-template-columns:130px minmax(0,1fr);gap:24px}}
@media(max-width:680px){.page-shell{display:block;margin:20px auto 36px;padding:0 18px}.page-navigation{position:static;margin-bottom:14px}.page-navigation .stream-toolbar,.page-navigation .feed-actions{flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.page-navigation .user-back,.page-navigation #back{min-height:28px;padding:3px 0}}

/* Center the content itself; navigation lives outside its measured width. */
.page-shell{position:relative;display:block;max-width:calc(var(--page-column) + 48px)}
.page-shell>.page-navigation{position:absolute;top:0;right:calc(100% + 8px);width:160px;margin:0}
.feed-popout .page-shell>.page-navigation{position:static;right:auto;width:auto;margin:0 0 12px}
@media(max-width:1480px){.page-shell.wide-page-shell>.page-navigation{position:static;right:auto;width:auto;margin-bottom:14px}}
@media(max-width:1100px){.page-shell>.page-navigation{position:static;right:auto;width:auto;margin-bottom:14px}.page-navigation .stream-toolbar,.page-navigation .feed-actions{flex-direction:row;justify-content:space-between;align-items:center}}

/* Keep the window action with feed controls and share the message column's right edge. */
.stream-feed-page .feed-selector-row>#popout-feed{margin-left:auto;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);font-weight:400;font-size:12px;white-space:nowrap}
.stream-feed-page .feed-selector-row>#popout-feed:hover{color:var(--text);background:#242b36}
.stream-feed-page #feed-search-controls{overflow-y:hidden;scrollbar-gutter:stable;padding-right:8px}
.feed-popout .feed-selector-row>#popout-feed{display:none!important}
@media(max-width:680px){.stream-feed-page .feed-selector-row>#popout-feed{margin-left:0}}

/* Media type uses the same neutral text badge on overview and detail titles. */
.comment-page h1>.title-type-badge{display:inline-flex;align-items:center;vertical-align:middle;position:relative;top:-.08em;margin-right:10px;padding:3px 7px;font-size:11px;line-height:1.25;font-weight:400;letter-spacing:0;border-radius:6px;border:1px solid #444b57;background:#252a32;color:#bcc8d9;white-space:nowrap}
.comment-page h1>.title-type-badge.is-live{background:#4d2229;border-color:#a64952;color:#ffb3bb}

/* Shared badge alignment: no per-page offsets, inherited title-line slots, centered identity groups. */
.badge,.role-badge,.history-tag,.tombstone-label{display:inline-flex;align-items:center;justify-content:center;position:static;inset:auto;transform:none;line-height:1;vertical-align:middle}
.type-badge-slot{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;height:1lh;font:inherit;line-height:inherit;vertical-align:top;white-space:nowrap}
.comment-page h1>.type-badge-slot{margin-right:10px}
.comment-page h1 .type-badge-slot>.title-type-badge{position:static;inset:auto;transform:none;align-self:center;margin:0;padding:3px 7px;font-size:11px;line-height:1;font-weight:400;letter-spacing:0;border-radius:6px;border:1px solid #444b57;background:#252a32;color:#bcc8d9;white-space:nowrap}
.comment-page h1 .type-badge-slot>.title-type-badge.is-live{background:#4d2229;border-color:#a64952;color:#ffb3bb}
.video-card .card-title .type-badge-slot>.type-title-badge{position:static;inset:auto;transform:none;margin:0;align-self:center;line-height:1}
.user-page #user-name{align-items:center}
.user-page #user-name .profile-user-name{line-height:1.2}
.user-page #user-name .role-badge,.user-page #user-name .uploader-badge{position:static;inset:auto;transform:none;align-self:center;line-height:1;vertical-align:middle;margin-block:0}
.chat-message .byline{align-items:center}
.chat-message .byline>.badge,.chat-message .byline>.role-badge,.chat-message .byline>.history-tag,.chat-message .byline>.tombstone-label{position:static;inset:auto;transform:none;align-self:center;line-height:1;margin-block:0}
.chat-message .byline>.user-history-link,.chat-message .byline>strong{line-height:1.4}
.viewer-identity,.viewer-badges{align-items:center}
.viewer-identity .viewer-name{line-height:1.4}
.viewer-identity .role-badge,.viewer-identity .uploader-badge{position:static;inset:auto;transform:none;align-self:center;margin-block:0;line-height:1}
.stream-archive-page .stream-history-table .history-content>.history-viewer{display:inline-flex;align-items:center;gap:5px;vertical-align:baseline;max-width:100%}
.stream-archive-page .stream-history-table .history-viewer>.history-author{line-height:inherit;min-width:0}
.stream-archive-page .stream-history-table .history-viewer>.role-badge,.stream-archive-page .stream-history-table .history-viewer>.uploader-badge{position:static;inset:auto;transform:none;align-self:center;vertical-align:middle;margin:0;line-height:1}
.user-history-table .history-content>.history-tag{position:static;inset:auto;transform:none;line-height:1;vertical-align:middle}
.toast-title{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px}
.toast-title .tombstone-label{margin:0;align-self:center;line-height:1}

/* Standalone badge groups keep a common center; mixed text rows use the shared optical alignment. */
.badges>.badge,.heading>.badge,.viewer-badges>.role-badge{align-self:center;margin-block:0}
.byline>.badge,.byline>.role-badge,.byline>.history-tag{flex-shrink:0}

.user-history-table .history-source{margin-right:8px;font-size:10px;padding:3px 6px;border-color:var(--line);color:var(--muted);background:var(--panel)}.history-comment-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px;font-size:11px;color:var(--muted)}.history-comment-actions a:hover{color:var(--blue);text-decoration:underline}.user-history-page .history-tag.deleted{background:#4d2229;border-color:#90505a;color:var(--red)}.user-history-table .history-tag:not(.donation):not(.tombstone){margin-right:6px}

.video-comments-page .byline>.user-history-link{font-weight:700}.video-comments-page .byline>.user-history-link:hover{color:var(--blue);text-decoration:underline}
