.news-shell[hidden], .news-shell [hidden], .news-dialog [hidden] { display: none !important; }
.news-dialog, .news-dialog * { box-sizing: border-box; }
.news-shell { max-width: 1500px; margin: 14px auto 0; padding: 0 24px; color: var(--ink, #1f2a36); }
.news-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; background: #fff; border: 1px solid var(--border, #dbe3ee); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.news-brand { font-size: 12px; font-weight: 800; white-space: nowrap; }
.news-story { flex: 1; min-width: 180px; overflow: hidden; }
.news-story a { display: block; color: var(--accent, #1f6fd8); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-meta, .news-empty, .news-count, .news-notice { color: var(--muted, #5b6b7a); font-size: 12px; }
.news-meta { margin-top: 3px; }
.news-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-left: auto; }
.news-shell button, .news-dialog button { font-family: inherit; border: 1px solid var(--border, #dbe3ee); border-radius: 7px; background: #f5f8fc; color: var(--ink, #1f2a36); font-size: 12px; font-weight: 700; padding: 5px 9px; cursor: pointer; }
.news-shell button:hover, .news-dialog button:hover { background: var(--accent-wash, #e8f0fc); }
.news-shell button:focus-visible, .news-dialog button:focus-visible { outline: 2px solid var(--accent, #1f6fd8); outline-offset: 2px; }
.news-shell button:disabled, .news-dialog button:disabled { opacity: .55; cursor: wait; }
.news-notice { width: 100%; }
.news-dialog { font-family: inherit; color: var(--ink, #1f2a36); width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid var(--border, #dbe3ee); border-radius: 12px; padding: 22px; background: #fff; box-shadow: 0 16px 60px #0003; }
.news-dialog::backdrop { background: #17131066; }
.news-dialog h2, .news-dialog h3 { margin: 0; }
.news-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.news-dialog p { font-size: 13px; color: var(--muted, #5b6b7a); line-height: 1.5; }
.news-dialog label { display: block; font-size: 12px; margin: 12px 0 5px; font-weight: 700; color: var(--muted, #5b6b7a); }
.news-dialog input[type="url"], .news-dialog input[type="text"] { width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--border, #dbe3ee); border-radius: 7px; padding: 9px 10px; color: inherit; background: #fff; }
.news-dialog .news-primary { background: var(--accent, #1f6fd8); border-color: var(--accent, #1f6fd8); color: #fff; }
.news-dialog .news-primary:hover { background: var(--accent-dark, #1657ab); }
.news-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.news-examples { margin: 10px 0 16px; font-size: 12px; }
.news-preview { margin-top: 14px; background: #f5f8fc; border: 1px solid var(--border, #dbe3ee); border-radius: 8px; padding: 12px; }
.news-preview ul { padding-left: 20px; font-size: 13px; line-height: 1.5; }
.news-status { min-height: 20px; font-size: 13px; margin-top: 12px; color: var(--muted, #5b6b7a); }
.news-status.error, .news-feed-error { color: #b3261e; }
.news-feed-list { padding: 0; list-style: none; }
.news-feed-row { border-top: 1px solid var(--border, #dbe3ee); padding: 12px 0; }
.news-feed-top { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.news-feed-top label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; text-transform: none; letter-spacing: normal; color: inherit; }
.news-feed-top input[type="checkbox"] { width: auto; margin: 0; }
.news-feed-url { overflow-wrap: anywhere; font-size: 12px; color: var(--muted, #5b6b7a); margin: 5px 0; }
.news-feed-detail { font-size: 12px; }
@media (max-width: 650px) {
  .news-story { flex-basis: 100%; order: 3; }
  .news-story a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .news-controls { flex-wrap: wrap; }
  .news-dialog { padding: 16px; }
}
