/* v3.35.1: preserve readable card heights in the compact dashboard preview. */
#news-panel > #news-list { grid-auto-rows: max-content; align-content: start; }
#news-panel > #news-list > .news-item { min-height: min-content; }
/* News is now a primary destination, not a fixed-height dashboard preview.
   Scroll the page instead of nesting a short scroll pane. A saved collapsed or
   hidden preview preference must not hide the dedicated News destination. */
body:not(.finance-mode):not(.gs-today-mode):is(.gs-mobile-appmode[data-gs-mobile-view="feed"],:not(.gs-mobile-appmode)[data-gs35-view="feed"]) #news-panel {
  display: block !important; height: auto !important; max-height: none !important; min-height: 0 !important;
}
body:not(.finance-mode):not(.gs-today-mode):is(.gs-mobile-appmode[data-gs-mobile-view="feed"],:not(.gs-mobile-appmode)[data-gs35-view="feed"]) #news-panel > .intel-tabs {
  display: flex !important; flex-wrap: wrap; border-bottom: 1px solid var(--line);
}
body:not(.finance-mode):not(.gs-today-mode):is(.gs-mobile-appmode[data-gs-mobile-view="feed"],:not(.gs-mobile-appmode)[data-gs35-view="feed"]) #news-panel > #news-list {
  display: block !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; overscroll-behavior: auto;
}
body:not(.finance-mode):not(.gs-today-mode):is(.gs-mobile-appmode[data-gs-mobile-view="feed"],:not(.gs-mobile-appmode)[data-gs35-view="feed"]) #news-panel .panel-collapse-control {
  display: none !important;
}
body:not(.finance-mode):not(.gs-today-mode):is(.gs-mobile-appmode[data-gs-mobile-view="feed"],:not(.gs-mobile-appmode)[data-gs35-view="feed"]) #news-list > .news-item {
  display: block; position: relative; width: 100%; height: auto !important; min-height: 0; max-height: none; overflow: visible; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 16px !important; transform: none;
}
body:not(.finance-mode):not(.gs-today-mode):is(.gs-mobile-appmode[data-gs-mobile-view="feed"],:not(.gs-mobile-appmode)[data-gs35-view="feed"]) #news-list > .news-item:last-child { border-bottom: 0 !important; }
body:not(.finance-mode):not(.gs-today-mode):is(.gs-mobile-appmode[data-gs-mobile-view="feed"],:not(.gs-mobile-appmode)[data-gs35-view="feed"]) #news-panel > .panel-title {
  display: flex; align-items: flex-start; flex-direction: column; gap: 5px; padding: 15px 16px; border-bottom: 1px solid var(--line) !important;
}
#news-panel #news-panel-status { font-family: inherit !important; font-size:18px !important; text-transform: none; letter-spacing: 0 !important; }

/* The full News tab includes the channel guide. Workspace keeps its compact article preview. */
.news-channels {display:none}
body:is(.gs-mobile-appmode[data-gs-mobile-view="feed"],:not(.gs-mobile-appmode)[data-gs35-view="feed"]) .news-channels {
  display:block; border-bottom:1px solid var(--line); padding:0 1rem; color:var(--text);
}
.news-channels summary {cursor:pointer; width:fit-content; padding:.72rem .12rem; min-height:44px; box-sizing:border-box; font-weight:650}
.news-channels p {margin:.1rem 0 .65rem; color:var(--muted); line-height:1.45}
.news-channels ul {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:0 1rem; list-style:none; margin:0 0 .7rem; padding:0}
.news-channels li {min-width:0}
.news-channels a {display:flex; justify-content:space-between; align-items:center; gap:.75rem; min-height:48px; padding:.45rem .18rem; color:var(--text); text-decoration:none; border-top:1px solid var(--line)}
.news-channels a strong,.news-channels a small {display:block; line-height:1.4}
.news-channels a small {color:var(--muted); font-size:1rem}
.news-channels a:hover strong {text-decoration:underline}
.news-channels :is(a,summary):focus-visible {outline:2px solid currentColor; outline-offset:2px}
