/* News Intelligence — dashboard layout, party scoreboard, district map with its panel, story cards. */
.nw { --nw-empty: var(--surface-3); --nw-gap: 16px; max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--nw-gap); }
.nw .num { font-variant-numeric: tabular-nums; }
.nw-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.nw-scroll { overflow-x: auto; }

/* ---------- header ---------- */
.nw-head { align-items: flex-end; gap: 14px; }
.nw-head h1 { line-height: 1.2; }
.nw-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-bottom: 4px; flex-wrap: wrap; }
.nw-crumbs a { color: var(--text-2); }
.nw-crumbs .ic { opacity: .5; }
.nw-backbtn { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px 2px 6px; border-radius: 14px; background: var(--surface-3); color: var(--text) !important; font-weight: 600; margin-right: 6px; text-decoration: none !important; }
.nw-backbtn:hover { background: var(--primary-soft); color: var(--primary) !important; }
.nw-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nw-status { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.nw-livebtn { border: 0; background: var(--primary); color: #fff; font-weight: 600; font-size: 12px; padding: 5px 11px; border-radius: 14px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; box-shadow: var(--shadow); }
.nw-navnote { padding: 4px 20px 10px; font-size: 11px; line-height: 1.5; color: var(--nav-text); }

/* ---------- toolbar ---------- */
.nw-toolbar { position: sticky; top: -22px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin: -6px 0 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; }
.nw-toolbar select.input { width: auto; }
.nw-toolbar #nw-add { max-width: 150px; }
.nw-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-3); }
.nw-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.nw-search input { border: 0; outline: 0; background: none; flex: 1; font: inherit; color: var(--text); min-width: 0; }
.nw-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; }
.nw-chips .chip { cursor: pointer; border-color: color-mix(in srgb, var(--c, var(--primary)) 35%, var(--line)); background: color-mix(in srgb, var(--c, var(--primary)) 8%, var(--surface)); }
.nw-chips .chip small { color: var(--text-3); font-weight: 600; text-transform: uppercase; font-size: 9.5px; letter-spacing: .04em; }
.nw-clear { border: 0; background: none; color: var(--text-3); font-size: 12px; cursor: pointer; text-decoration: underline; }

/* ---------- cards ---------- */
.nw-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); min-width: 0; }
.nw-card-h { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 0; }
.nw-card-h h3 { font-size: 15px; display: flex; align-items: center; gap: 7px; margin: 0; }
.nw-card-h p { margin: 4px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.nw-card-b { padding: 14px 18px 18px; }
.nw-more-link { font-size: 12px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; padding-top: 2px; }
.nw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nw-gap); }
@media (max-width: 1080px) { .nw-cols { grid-template-columns: 1fr; } }

/* ---------- briefing ---------- */
.nw-brief { display: grid; grid-template-columns: 1fr 300px; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, var(--surface)), var(--surface) 55%); }
.nw-brief-main { padding: 20px 22px; min-width: 0; }
.nw-kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.nw-brief h2 { font-size: 21px; margin: 6px 0 12px; letter-spacing: -.01em; }
.nw-brief ul, .nw-ebrief { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nw-brief li, .nw-ebrief li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.nw-bi { width: 26px; height: 26px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--primary); }
.nw-brief-nums { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); background: var(--surface); }
.nw-brief-nums > div, .nw-hero-nums > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.nw-brief-nums > div:nth-child(odd) { border-right: 1px solid var(--line); }
.nw-brief-nums span, .nw-hero-nums span { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nw-brief-nums b { font-size: 24px; font-variant-numeric: tabular-nums; }
.nw-brief-nums small, .nw-hero-nums small { font-size: 11.5px; color: var(--text-3); }
@media (max-width: 900px) { .nw-brief { grid-template-columns: 1fr; } .nw-brief-nums { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); } }
.nw-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.nw-key span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.nw-key i, .nw-ilegend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- logos ---------- */
.nw-logo { position: relative; display: inline-grid; place-items: center; border-radius: 10px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); background: #fff; vertical-align: middle; }
.nw-logo img { width: 100%; height: 100%; object-fit: contain; }
.nw-flag i { position: absolute; left: 0; right: 0; }
.nw-logo .nw-flag-t { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.65); line-height: 1; }
.nw-logo .nw-flag-t.dark { color: #111; text-shadow: 0 1px 1px rgba(255,255,255,.8); }
.nw-av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-3); box-shadow: 0 0 0 2px var(--ring); vertical-align: middle; }
.nw-av img { width: 100%; height: 100%; object-fit: cover; }
.nw-av i { font-style: normal; font-weight: 700; font-size: 13px; color: var(--text-2); }
.nw-bigdot { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; }

/* ---------- impact bar, score ---------- */
.nw-ibar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-3); gap: 1px; }
.nw-ibar.thin { height: 6px; }
.nw-ibar.empty { opacity: .5; }
.nw-ibar span { min-width: 3px; }
.nw-net { display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--surface-3); color: var(--text-2); }
.nw-net.up { background: color-mix(in srgb, #16a34a 14%, var(--surface)); color: #15803d; }
.nw-net.down { background: color-mix(in srgb, #dc2626 13%, var(--surface)); color: #b91c1c; }
.nw-net.none { color: var(--text-3); font-weight: 600; }
.nw-net.big { font-size: 20px; height: 34px; min-width: 60px; border-radius: 10px; }
.nw-ilegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.nw-ilegend span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- party scoreboard ---------- */
.nw-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.nw-pc { display: flex; flex-direction: column; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none !important; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.nw-pc::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--pc); }
.nw-pc:hover { border-color: color-mix(in srgb, var(--pc) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.nw-pc-top { display: flex; gap: 10px; align-items: center; }
.nw-pc-top b { display: block; font-size: 15px; }
.nw-pc-top small { display: block; color: var(--text-3); font-size: 11.5px; }
.nw-pc-n { text-align: right; }
.nw-pc-n b { font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.nw-pc-n small { display: block; font-size: 10.5px; color: var(--text-3); }
.nw-pc-spark svg { width: 100%; height: 30px; display: block; }
.nw-pc-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.nw-pc-counts span { display: flex; flex-direction: column; font-size: 10.5px; color: var(--text-3); line-height: 1.2; padding-left: 7px; border-left: 3px solid var(--c); }
.nw-pc-counts b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.nw-pc-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); min-width: 0; }
.nw-pc-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; flex: none; }

/* ---------- your side ---------- */
.nw-lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1180px) { .nw-lanes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .nw-lanes { grid-template-columns: 1fr; } }
.nw-lane { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--surface)), var(--surface) 40%); border-top: 3px solid var(--c); min-width: 0; }
.nw-lane-h b { display: block; font-size: 13.5px; color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.nw-lane-h small { color: var(--text-3); font-size: 11.5px; }
.nw-lane-b { display: grid; gap: 6px; flex: 1; }
.nw-lane-s { display: block; padding: 7px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.nw-lane-s:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.nw-lane-s b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.nw-lane-s small { display: block; font-size: 11px; margin-top: 2px; }

/* ---------- top stories, incidents, topics ---------- */
.nw-top { display: grid; gap: 2px; }
.nw-top-r { display: flex; gap: 11px; align-items: flex-start; padding: 9px 8px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.nw-top-r:hover { background: var(--surface-2); }
.nw-top-i { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; color: var(--text-2); }
.nw-top-r b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; }
.nw-top-r small { display: block; font-size: 11.5px; margin: 2px 0 4px; }
.nw-inclist { display: grid; gap: 6px; }
.nw-inc-r { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--c); color: var(--text); text-decoration: none !important; }
.nw-inc-r:hover { background: var(--surface-2); }
.nw-inc-r b { display: block; font-size: 13px; }
.nw-inc-r small { font-size: 11.5px; }
.nw-tlist { display: grid; gap: 2px; }
.nw-trow { display: grid; grid-template-columns: minmax(130px, 34%) 1fr 44px 56px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none !important; }
.nw-trow:hover { background: var(--surface-2); }
.nw-trow-name { min-width: 0; }
.nw-trow-name b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-trow-name small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-trow-bar { height: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.nw-trow-bar i { display: block; height: 100%; border-radius: 5px; }
.nw-trow > b, .nw-trow > small { text-align: right; font-size: 12px; }

/* ---------- map + district panel ---------- */
.nw-mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.nw-mapwrap.big { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 980px) { .nw-mapwrap, .nw-mapwrap.big { grid-template-columns: 1fr; } }
.nw-mapside { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.nw-maptools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nw-maptools select { width: auto; }
.nw-mapbox { width: 100%; max-width: 620px; margin: 0 auto; }
.nw-mapwrap.big .nw-mapbox { max-width: 760px; }
.nw-map { width: 100%; height: auto; display: block; }
.nw-map path { stroke: var(--surface); stroke-width: 2.5; cursor: pointer; transition: opacity .12s, stroke .12s; outline: none; }
.nw-map path:hover, .nw-map path:focus-visible { stroke: var(--text); stroke-width: 3.5; }
.nw-map path.on { stroke: var(--text); stroke-width: 5; }
.nw-map-g { pointer-events: none; }
.nw-map-name { text-anchor: middle; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: color-mix(in srgb, var(--surface) 80%, transparent); stroke-width: 4px; }
.nw-map-n { text-anchor: middle; font-size: 20px; font-weight: 800; fill: var(--text-2); paint-order: stroke; stroke: color-mix(in srgb, var(--surface) 80%, transparent); stroke-width: 4px; }
.nw-map-g.tight .nw-map-name { display: none; }
.nw-maplegend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; max-width: 360px; margin: 0 auto; width: 100%; font-size: 11px; color: var(--text-3); }
.nw-maplegend .nw-grad { grid-column: 1 / -1; height: 8px; border-radius: 5px; }
.nw-maplegend small:last-child { text-align: right; }
.nw-dpanel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); position: sticky; top: 60px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.nw-dp-h { display: flex; align-items: flex-start; gap: 8px; }
.nw-dp-h h4 { font-size: 18px; margin: 0; }
.nw-dp-h small { font-size: 13px; color: var(--text-3); }
.nw-rank { font-size: 12px; font-weight: 800; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 10px; }
.nw-dp-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nw-dp-nums div { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px; display: flex; flex-direction: column; }
.nw-dp-nums b { font-size: 18px; font-variant-numeric: tabular-nums; }
.nw-dp-nums span { font-size: 10.5px; color: var(--text-3); }
.nw-dp-ps { display: grid; gap: 4px; }
.nw-dp-p { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 8px; color: var(--text); text-decoration: none !important; font-size: 12.5px; }
.nw-dp-p:hover, .nw-dp-p.on { background: var(--surface); }
.nw-dp-p b { width: 56px; }
.nw-dp-list { display: grid; gap: 6px; }
.nw-dp-s { display: block; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--text); text-decoration: none !important; }
.nw-dp-s:hover { border-color: var(--primary); }
.nw-dp-s b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.nw-dp-s small { display: block; font-size: 11px; margin-top: 2px; }

/* ---------- entity hero ---------- */
.nw-hero { display: flex; gap: 18px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.nw-hero-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.nw-hero-nums > div { border-bottom: 0; border-right: 1px solid var(--line); position: relative; }
.nw-hero-nums > div:last-child { border-right: 0; }
.nw-hero-nums > div[style]::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--c); }
.nw-hero-nums b { font-size: 22px; font-variant-numeric: tabular-nums; }
.nw-hero-map { width: 150px; flex: none; }
@media (max-width: 760px) { .nw-hero { flex-direction: column; align-items: flex-start; } .nw-hero-map { display: none; } }
.nw-ebrief { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.nw-chart { height: 260px; position: relative; }
.nw-attacks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nw-attacks h5 { margin: 0 0 6px; font-size: 12px; display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.nw-attacks h5 i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.nw-att { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none !important; font-size: 13px; }
.nw-att:hover { background: var(--surface-2); }
.nw-prows { display: grid; gap: 2px; }
.nw-prow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; color: var(--text); text-decoration: none !important; font-size: 13px; }
.nw-prow:hover { background: var(--surface-2); }
.nw-prow > b:not(.ellipsis) { width: 60px; }
.nw-prow small { width: 36px; text-align: right; color: var(--text-3); }

/* ---------- leaders, topics, incidents, tables ---------- */
.nw-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.nw-lcard { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none !important; background: var(--surface); }
.nw-lcard:hover { border-color: var(--primary); }
.nw-lcard.none { opacity: .55; }
.nw-lcard b { display: block; font-size: 13px; }
.nw-lcard small { display: block; color: var(--text-3); font-size: 11.5px; margin-bottom: 5px; }
.nw-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.nw-topic { display: flex; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; color: var(--text); text-decoration: none !important; }
.nw-topic:hover { background: var(--surface-2); }
.nw-topic.none { opacity: .5; }
.nw-topic-h { display: flex; justify-content: space-between; gap: 8px; }
.nw-topic-h .num { font-weight: 800; }
.nw-topic small { font-size: 11.5px; }
.nw-incgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.nw-incc { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; color: var(--text); text-decoration: none !important; }
.nw-incc:hover { box-shadow: var(--shadow); }
.nw-incc.off { opacity: .6; }
.nw-incc p { margin: 0; }
.nw-incc svg { width: 100%; }
.nw-incc-f { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.nw-sugg { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.nw-sugg:last-child { border-bottom: 0; }
.nw-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); white-space: nowrap; }
.nw-table td.num, .nw-table th.num { text-align: right; }
.nw-table tr[data-go] { cursor: pointer; }
.nw-table tr[data-go]:hover td { background: var(--surface-2); }
.nw-pmini { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-right: 6px; vertical-align: middle; }
.nw-pmini i { width: 18px; height: 4px; border-radius: 2px; display: block; }
.nw-first { display: grid; gap: 4px; }
.nw-first a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; color: var(--text); text-decoration: none !important; }
.nw-first a:hover { background: var(--surface-2); }
.nw-first-i { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }

/* ---------- outlet × party grid ---------- */
.nw-matrix { display: grid; grid-template-columns: minmax(130px, 170px) repeat(var(--cols), minmax(46px, 1fr)); gap: 3px; align-items: center; min-width: max-content; }
.nw-mh0 { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nw-mh { display: grid; place-items: center; padding-bottom: 4px; }
.nw-mo { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.nw-mc { height: 34px; border: 0; border-radius: 7px; font-size: 12px; font-weight: 800; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-variant-numeric: tabular-nums; }
.nw-mc small { font-size: 9.5px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.nw-mc:hover { outline: 2px solid var(--text); }
.nw-mc.empty { background: transparent; cursor: default; }

/* ---------- stories ---------- */
.nw-stories { display: grid; gap: 10px; }
.nw-stories.grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.nw-morebox { text-align: center; margin-top: 12px; }
.nw-story { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.nw-story:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.nw-story-top { display: flex; align-items: center; gap: 8px; font-size: 12px; min-width: 0; }
.nw-outlet { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.nw-pill { border: 0; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nw-pill:hover { background: var(--primary-soft); color: var(--primary); }
.nw-event { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.nw-event.neg { color: #b91c1c; } .nw-event.pos { color: #15803d; }
.nw-story-main { display: flex; gap: 12px; }
.nw-story-img { width: 96px; height: 72px; object-fit: cover; border-radius: 9px; flex: none; background: var(--surface-3); }
.nw-story h4 { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 650; }
.nw-story h4 a { color: var(--text); }
.nw-story h4 a:hover { color: var(--primary); }
.nw-gist { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.nw-chips-i { display: flex; flex-wrap: wrap; gap: 5px; }
.nw-chips-i.sm .nw-chip-i { font-size: 11px; padding: 1px 7px 1px 3px; }
.nw-chip-i { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 12px; font-size: 11.5px; color: var(--text); text-decoration: none !important; background: color-mix(in srgb, var(--c) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.nw-chip-i span { color: color-mix(in srgb, var(--c) 80%, var(--text)); font-weight: 700; }
.nw-chip-i .nw-logo { border-radius: 4px; }
.nw-story-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nw-tagc { font-size: 11px; padding: 2px 8px; border-radius: 10px; color: var(--text-2); background: color-mix(in srgb, var(--c, #64748b) 10%, var(--surface)); text-decoration: none !important; display: inline-flex; align-items: center; gap: 3px; }
.nw-tagc.inc { background: var(--c); color: #fff; font-weight: 600; }
.nw-tagc.plain { background: var(--surface-2); }
.nw-method { font-size: 10.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 3px; }
.nw-method.ai { color: var(--primary); font-weight: 600; }
.nw-story .icon-btn { width: 26px; height: 26px; }
.nw-others { display: grid; gap: 4px; padding-top: 6px; border-top: 1px dashed var(--line); }
.nw-others a { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; font-size: 12px; color: var(--text); }
.nw-others a b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface-3); padding: 3px; border-radius: 9px; }
.nw-tabs button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nw-tabs button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.nw-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- saved, why ---------- */
.nw-saved { display: grid; gap: 6px; }
.nw-savedrow { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.nw-why { display: grid; gap: 8px; }
.nw-why-r { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.nw-why-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.nw-why-pick button { border: 1px solid var(--line); background: var(--surface); padding: 4px 9px; border-radius: 14px; font-size: 11.5px; cursor: pointer; color: var(--text-2); }
.nw-why-pick button.on { background: var(--c); border-color: var(--c); color: #fff; font-weight: 700; }
.nw-why-pick button.rm { color: var(--text-3); }

/* ---------- Sources & setup (news-setup.js) ---------- */
.nw-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 13px; } .nw-kv span { color: var(--text-3); }
.nw-ctx { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.nw-src td { vertical-align: top; }
.nw-feed { display: grid; grid-template-columns: 10px 110px 1fr auto; gap: 6px; align-items: center; padding: 2px 0; }
.nw-hdot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); } .nw-hdot.ok { background: #16a34a; } .nw-hdot.bad { background: #dc2626; } .nw-hdot.wait { background: #ca8a04; } .nw-hdot.off { background: var(--line); }
.nw-ents { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.nw-ent { display: flex; gap: 9px; align-items: center; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.nw-ent:hover { background: var(--surface-2); } .nw-ent b { display: block; font-size: 13px; } .nw-ent small { display: block; font-size: 11px; color: var(--text-3); }
.nw-ent.add { justify-content: center; color: var(--primary); font-weight: 600; border-style: dashed; }

/* fitting refinements */
.nw-toolbar .seg button { padding: 5px 9px; }
.nw-search { min-width: 170px; }
.nw-stories.grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.nw-stories.grid .nw-story-img { width: 84px; height: 64px; }
.nw-stories.grid .nw-story h4 { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-story-img { order: 2; }
@media (max-width: 520px) { .nw-stories.grid { grid-template-columns: 1fr; } .nw-story-img { display: none; } }
@media (max-width: 600px) {
  .nw-brief-nums { grid-template-columns: 1fr 1fr; }
  .nw-brief-main { padding: 16px; }
  .nw-card-h { padding: 14px 14px 0; flex-wrap: wrap; } .nw-card-b { padding: 12px 14px 14px; }
  .nw-toolbar { position: static; }
  .nw-hero-nums { grid-template-columns: repeat(2, 1fr); }
  .nw-trow { grid-template-columns: minmax(0, 1fr) 70px 36px 46px; }
  .nw-attacks { grid-template-columns: 1fr; }
}
.nw-brief > * { min-width: 0; }
/* grid children never grow past their column (long Tamil headlines) */
.nw-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1080px) { .nw-cols { grid-template-columns: minmax(0, 1fr); } }
.nw-inclist, .nw-top, .nw-tlist, .nw-prows, .nw-dp-list, .nw-lane-b { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) { .nw-inc-r .nw-spark { display: none; } }
