/* RSS reader. Reuses the hub palette; no external images (CSP allows 'self' only).
   Reader colors use the shared tokens and the classic palette fallbacks. */
.rss-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:16px; align-items:start }
.rss-feeds { padding:8px; max-height:calc(100vh - 210px); overflow-y:auto; scrollbar-gutter:stable }
.rss-feeds .panel-head { padding:8px 7px 10px; margin:0 }
.rss-feed-item strong { display:flex; align-items:center; gap:6px }
.rss-feed-item .feed-count { flex-shrink:0; font-size:11px; color:var(--muted) }
.rss-feed-item .feed-count.on { color:var(--blue); font-weight:600 }
.rss-feed-item .feed-dot { width:6px; height:6px; border-radius:50%; background:var(--green); flex-shrink:0 }
.rss-feed-item .feed-dot.off { background:var(--muted) }
.rss-feed-item .feed-dot.err { background:var(--pink) }
.rss-pane { display:grid; grid-template-columns:minmax(0,380px) minmax(0,1fr); gap:14px; align-items:start; min-width:0 }
.rss-column { display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:10px; min-width:0; max-height:calc(100vh - 205px) }
.rss-items { display:grid; gap:0; padding:0; overflow-y:auto; scrollbar-gutter:stable }
.rss-item { display:block; width:100%; text-align:left; background:none; border:0; border-bottom:1px solid var(--line,#ffffff0a); padding:15px 18px; transition:background var(--motion) }
.rss-item:last-child { border-bottom:0 }
.rss-item:hover { background:var(--subtle,#ffffff05) }
.rss-item.selected { background:var(--subtle,#ffffff08) }
.rss-item.is-read { opacity:.62 }
.rss-item h3 { font-size:14px; font-weight:600; margin:0 0 6px; line-height:1.45 }
.rss-item p { color:var(--muted); font-size:12px; line-height:1.7; margin:0 0 8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.rss-item .rss-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:11px; color:var(--muted) }
.rss-item .rss-meta .spacer { margin-left:auto }
.rss-item .unread-dot { width:6px; height:6px; border-radius:50%; background:var(--blue); flex-shrink:0 }
.rss-reader { padding:0; max-height:calc(100vh - 205px); overflow-y:auto; scrollbar-gutter:stable }
.rss-feeds,.rss-items,.rss-reader { scrollbar-width:thin; scrollbar-color:rgba(var(--accent-rgb,127,172,255),.34) transparent }
.rss-feeds::-webkit-scrollbar,.rss-items::-webkit-scrollbar,.rss-reader::-webkit-scrollbar { width:5px; height:5px }
.rss-feeds::-webkit-scrollbar-button,.rss-items::-webkit-scrollbar-button,.rss-reader::-webkit-scrollbar-button { display:none; width:0; height:0 }
.rss-feeds::-webkit-scrollbar-track,.rss-items::-webkit-scrollbar-track,.rss-reader::-webkit-scrollbar-track { background:transparent }
.rss-feeds::-webkit-scrollbar-thumb,.rss-items::-webkit-scrollbar-thumb,.rss-reader::-webkit-scrollbar-thumb { background:rgba(var(--accent-rgb,127,172,255),.3); border:0; border-radius:999px }
.rss-feeds::-webkit-scrollbar-thumb:hover,.rss-items::-webkit-scrollbar-thumb:hover,.rss-reader::-webkit-scrollbar-thumb:hover { background:rgba(var(--accent-rgb,127,172,255),.52) }
.rss-reader .reader-head { padding:20px 22px 14px; border-bottom:1px solid var(--border) }
.rss-reader .reader-head h2 { font-size:19px; line-height:1.45; margin:0 0 10px }
.rss-reader .reader-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--muted) }
.rss-reader .reader-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:14px }
.rss-body { padding:6px 22px 26px; max-width:760px }
.rss-body p { margin:0 0 15px; line-height:1.95; font-size:14px; color:var(--text); overflow-wrap:anywhere }
.rss-body h3 { font-size:15px; margin:22px 0 12px }
.rss-body .quote { border-left:2px solid var(--border); padding-left:12px; color:var(--muted) }
.rss-body .bullet { padding-left:14px; text-indent:-14px }
.rss-pager { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 4px 4px }
.rss-manage-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px 0; border-bottom:1px solid var(--line,#ffffff0a) }
.rss-manage-row:last-child { border-bottom:0 }
.rss-manage-row strong { display:block; font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.rss-manage-row small { color:var(--muted); font-size:11px; display:block; margin-top:3px; overflow-wrap:anywhere }
.rss-manage-row .row-tools { display:flex; gap:6px; align-items:center; justify-content:flex-end; flex-wrap:wrap; flex-shrink:0; max-width:300px }
.rss-add-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,180px); gap:10px; align-items:end; margin:6px 0 12px }
.rss-add-form .rss-add-url,.rss-add-form .rss-add-note { grid-column:1/-1 }
.rss-add-form .button { justify-self:start }
.rss-add-form label { display:block; font-size:11px; color:var(--muted); margin-bottom:5px }
.rss-bridge-help { margin:0 0 18px; line-height:1.65 }
.rss-empty-state { padding:40px 22px; text-align:center; color:var(--muted) }
/* Two classes, and an explicit width: hub.css sizes every `.nav-item span` as a
   18px icon box, which would otherwise clip the count. */
.nav-item .nav-badge { width:auto; min-width:0; text-align:center; margin-left:auto; font-size:10px; font-weight:600; background:rgba(var(--accent-rgb,127,172,255),.14); color:var(--blue); border-radius:8px; padding:1px 6px; line-height:1.6; white-space:nowrap }
@media(max-width:1050px){ .rss-layout { grid-template-columns:210px minmax(0,1fr) } .rss-pane { grid-template-columns:minmax(0,320px) minmax(0,1fr) } }
@media(max-width:760px){
 .rss-layout { display:block }
 .rss-feeds { max-height:none; margin-bottom:12px; padding:6px }
 /* The rail turns into a horizontal strip here; group headings would be squeezed
    to vertical text, and every card already names its own category. */
 .rss-feeds .nav-label { display:none }
 .rss-feed-item { min-width:190px }
 .rss-pane { display:block }
 .rss-column { max-height:none; margin-bottom:12px }
 .rss-items { max-height:60vh }
 .rss-reader { max-height:none }
 .rss-items .rss-item { padding:12px 13px }
 .rss-body { padding:4px 14px 20px }
 .rss-reader .reader-head { padding:15px 14px 12px }
 .rss-add-form { grid-template-columns:minmax(0,1fr); }
 .rss-manage-row { grid-template-columns:minmax(0,1fr) }
 .rss-manage-row .row-tools { justify-content:flex-start }
}
