:root {
  --bg: #f4f1ea;
  --panel: #fffdf9;
  --ink: #1d1c1a;
  --muted: #6c675e;
  --line: #e0dacb;
  --accent: #b5532a;
  --neg: #b5532a;
  --pos: #2f7d54;
  --neu: #8a857a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, Georgia, serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.topbar nav { display: flex; gap: 14px; }
.regions { margin-left: auto; display: flex; gap: 6px; }
.chip {
  padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--muted); background: #fff;
}
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

main { max-width: 920px; margin: 0 auto; padding: 24px 20px 64px; }
h1 { font-size: 30px; margin: 8px 0 16px; letter-spacing: -0.5px; }
h1 small, h2 small { color: var(--muted); font-weight: 400; font-size: 0.5em; }
h2 { margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.ai-banner {
  font-size: 12px; color: #7a5b12; background: #fbf3dc; border: 1px solid #e8d79f;
  border-radius: 8px; padding: 6px 10px; margin: 8px 0;
}
.ai-banner.off { color: var(--muted); background: #efece4; border-color: var(--line); }

.agenda {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; margin-bottom: 12px;
}
.agenda h2 { margin-top: 22px; font-size: 18px; }
.agenda h2:first-child { margin-top: 0; }
.agenda p { line-height: 1.65; margin: 0 0 1em; }
.agenda li { line-height: 1.6; margin: 4px 0; }

.stories { display: flex; flex-direction: column; gap: 10px; }
.story {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
}
.story-title { font-weight: 700; font-size: 18px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.blindspot {
  margin-top: 8px; font-size: 13px; color: var(--neg);
  background: #f7e7df; border-radius: 6px; padding: 4px 8px; display: inline-block;
}
/* Covered-elsewhere (NOT an omission) and unverified (missing data) — visually
   distinct from a real blindspot so they're never read as silence. */
.covered-elsewhere {
  margin-top: 6px; font-size: 13px; color: var(--muted);
  background: #eef0ea; border-radius: 6px; padding: 4px 8px; display: inline-block;
}
.unverified {
  margin-top: 6px; font-size: 13px; color: #7a5b12;
  background: #fbf3dc; border: 1px solid #e8d79f; border-radius: 6px; padding: 4px 8px; display: inline-block;
}

/* Data-health banner + Coverage page */
.health-banner {
  font-size: 14px; color: #8a3413; background: #f7e2d7; border: 1px solid #e6b69a;
  border-radius: 8px; padding: 10px 14px; margin: 10px 0 4px;
}
.health-banner a { color: #8a3413; text-decoration: underline; }
.health-summary { display: flex; gap: 10px; margin: 6px 0 16px; flex-wrap: wrap; }
.hs { font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.hs.ok { background: #d8ecdf; color: var(--pos); }
.hs.bad { background: #f3ddd2; color: var(--neg); }
.hs.warn { background: #fbf3dc; color: #7a5b12; }
.row-bad td { background: #fbf1ec; }

.sent { font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.sent.neg { background: #f3ddd2; color: var(--neg); }
.sent.pos { background: #d8ecdf; color: var(--pos); }
.sent.neu { background: #ece9e1; color: var(--neu); }

.actions { display: flex; gap: 10px; margin-top: 22px; }
.actions button {
  font: inherit; padding: 8px 16px; border: 1px solid var(--accent); background: var(--accent);
  color: #fff; border-radius: 8px; cursor: pointer;
}
.actions button:hover { filter: brightness(1.05); }

/* At-a-glance spectrum bar */
.spectrum { display: flex; gap: 4px; margin: 14px 0 6px; height: 40px; }
.spectrum .seg {
  --lean: #8a857a;
  background: color-mix(in srgb, var(--lean) 16%, #fff);
  border: 1px solid var(--lean); border-bottom: 4px solid var(--lean);
  border-radius: 8px; min-width: 56px; padding: 4px 8px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.seg-label { font-size: 11px; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.seg-count { font-size: 16px; font-weight: 800; color: var(--lean); line-height: 1; }
.spectrum-help { margin: 0 0 18px; }

/* Lean-grouped columns, left → right */
.lean-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.lean-col { --lean: #8a857a; }
.lean-head {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: 15px; padding-bottom: 6px; border-bottom: 2px solid var(--lean);
}
.lean-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--lean); display: inline-block; }
.lean-n { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 400; }
.lean-cards { display: flex; flex-direction: column; gap: 12px; }

/* Story: full-width cards grouped by lean (roomy 2-up grid), not narrow columns */
.lean-group { margin: 0 0 22px; }
.outlet-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 560px) { .outlet-flow { grid-template-columns: 1fr; } }

/* Framing comparison table */
.cmp-table-wrap { overflow-x: auto; margin: 6px 0 18px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cmp-table tr { border-left: 4px solid var(--lean); }
.cmp-table td.cmp-outlet { border-left: 4px solid var(--lean); white-space: nowrap; font-weight: 600; }
.lean-chip { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; color: var(--lean); background: color-mix(in srgb, var(--lean) 14%, #fff); border: 1px solid var(--lean); vertical-align: middle; }

/* In-card read/source links */
.src-link { font-size: 11px; color: var(--muted); }
.read-link { display: inline-block; font-size: 13px; font-weight: 600; margin: 2px 0 6px; }

/* In-dashboard article reader */
.reader { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--lean); border-radius: 12px; padding: 26px 32px 30px; max-width: 720px; margin: 6px auto 0; }
.reader-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.reader-title { font-size: 30px; line-height: 1.22; margin: 12px 0 18px; letter-spacing: -0.4px; }
.article-hero { width: 100%; max-height: 400px; object-fit: cover; margin: 0 0 22px; }
/* Long-form reading: serif body, generous line-height + paragraph spacing */
.reader-body { font: 18px/1.75 Georgia, "Iowan Old Style", "Times New Roman", serif; color: #2b2924; }
.reader-body p { margin: 0 0 1.35em; }
.reader-body p:first-of-type { font-size: 1.04em; }
.reader-analysis { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.reader-source { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  main { padding: 16px 12px 56px; }
  .topbar { padding: 10px 12px; gap: 10px 12px; }
  .topbar nav { gap: 12px; font-size: 14px; }
  h1 { font-size: 24px; }
  .reader { padding: 18px 18px 24px; border-radius: 10px; }
  .reader-title { font-size: 24px; }
  .reader-body { font-size: 17.5px; line-height: 1.72; }
  .reader-body p { margin: 0 0 1.25em; }
  .article-hero { margin: 0 0 18px; }
}
.regen-form { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.outlet { --lean: #8a857a; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--lean); border-radius: 10px; padding: 14px; }
.outlet-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.outlet-name { font-weight: 700; }
.tag { font-size: 11px; background: #ece7da; color: var(--muted); padding: 1px 7px; border-radius: 999px; }
.tag-official { background: #d8eae3; color: #2f6d5c; font-weight: 700; }
.lead-badge { font-size: 11px; background: #f3ecc9; color: #7a5b12; padding: 1px 7px; border-radius: 999px; font-weight: 700; }
.lag-badge { font-size: 11px; background: #ece7da; color: var(--muted); padding: 1px 7px; border-radius: 999px; }
.edited-badge { font-size: 11px; background: #efe0ec; color: #7d2f6d; padding: 1px 7px; border-radius: 999px; font-weight: 700; }
.pubtime { font-size: 11px; background: #e6eef0; color: #355a66; padding: 1px 7px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pubtime::before { content: "🕒"; margin-right: 3px; opacity: 0.8; }
.pubtime-rel { opacity: 0.7; }
.pubtime-seen { background: #efece4; color: var(--muted); font-style: italic; }
.outlet-lead li .pubtime, .adlist li .pubtime { font-size: 10px; padding: 0 5px; }

/* Revisions / stealth edits */
.revlist { display: flex; flex-direction: column; gap: 8px; }
.rev { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #7d2f6d; border-radius: 8px; padding: 10px 14px; }
.rev-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.rev-diff { font-size: 15px; line-height: 1.5; }
.rev-link { display: inline-block; margin-top: 4px; }
.headline { display: block; font-weight: 700; margin: 2px 0 6px; }
.summary { font-size: 14px; color: #3a372f; margin: 0 0 8px; }
.framing { font-size: 13px; background: #faf6ee; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.framing div { margin: 2px 0; }
.quoted { font-size: 13px; margin-top: 8px; }
.vtype { color: var(--muted); }

.interests { font-size: 13px; margin-top: 8px; background: #f6f3ec; border-radius: 8px; padding: 8px 10px; }
.interests div { margin: 2px 0; }
.il-win { color: var(--pos); font-weight: 700; }
.il-lose { color: var(--neg); font-weight: 700; }
.il-ind { color: #7a5b12; font-weight: 700; }
.il-lobby { color: #8a4b1f; font-weight: 700; }
.il-flak { color: #7d2f6d; font-weight: 700; }
.divergence { font-size: 11px; color: #8a4b1f; background: #f6e7d6; border-radius: 6px; padding: 2px 7px; margin: 0 0 6px; display: inline-block; }
.age-badge { font-size: 11px; color: #3f5a7a; background: #e4ecf5; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }

/* Knowledge-graph ties + stance trends (outlet page) */
.ties-row { margin: 6px 0; font-size: 14px; }
.tie { display: inline-block; font-size: 13px; padding: 2px 8px; margin: 2px; border-radius: 999px; background: #efece4; border: 1px solid var(--line); }
.tie small { color: var(--muted); }
.tie-amp { background: #e0efe6; }
.tie-dis { background: #f3e3da; }
.tie-lobby { background: #f6e7d6; }
.trendlist { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.trend-row { display: grid; grid-template-columns: 200px 56px 1fr; align-items: baseline; gap: 8px; font-size: 13px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.trend-topic { font-weight: 600; }
.trend-val { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Evidence quote — verbatim text grounding a framing judgement (verifiability) */
.evq { margin: 6px 0 2px; padding: 4px 0 4px 10px; border-left: 3px solid var(--accent); color: #555049; font-style: italic; font-size: 13px; }
.flak-badge { font-size: 11px; background: #efe0ec; color: #7d2f6d; padding: 1px 7px; border-radius: 999px; font-weight: 700; white-space: nowrap; }

.beneficiaries { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0 16px; }
.beneficiaries h3 { margin: 0 0 8px; font-size: 15px; }
.ben-row { font-size: 14px; margin: 4px 0; }
.ben-row small { color: var(--muted); }

/* Outlet profile — stance timelines */
.stance-list { display: flex; flex-direction: column; gap: 6px; }
.stance-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.stance-topic { font-weight: 600; }
.stance-val { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 70px; text-align: right; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; }
.spark i { width: 5px; border-radius: 1px; display: inline-block; }
.stance-change { font-size: 12px; font-weight: 700; color: #8a4b1f; background: #f6e7d6; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.tallies { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tally { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tally h3 { margin: 0 0 6px; font-size: 14px; }
.tally ul { margin: 0; padding-left: 18px; }
.tally li { font-size: 13px; margin: 2px 0; }

table.sources { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.sources th, table.sources td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.sources th { background: #efe9da; }

/* What each outlet is leading with */
.lead-group-head { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 18px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.outlet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.outlet-lead { --lean: #8a857a; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--lean); border-radius: 10px; padding: 10px 14px; }
.outlet-lead h3 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.outlet-lead ol { margin: 0; padding-left: 18px; }
.outlet-lead li { font-size: 13px; margin: 3px 0; }

/* Ad / sponsored flags */
.adflag { font-size: 12px; color: #8a4b1f; background: #f6e7d6; border: 1px solid #e6cdb0; border-radius: 6px; padding: 3px 8px; margin: 4px 0; }
.adtag { font-size: 11px; color: #8a4b1f; background: #f6e7d6; padding: 0 5px; border-radius: 4px; white-space: nowrap; }
.adlist { padding-left: 18px; }
.adlist li { margin: 4px 0; }

/* Day timeline */
.histo { display: flex; align-items: flex-end; gap: 3px; height: 120px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 4px; margin: 10px 0 20px; }
.histo-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.histo-col.low { background: linear-gradient(to top, #efe7d6 0%, transparent 60%); border-radius: 4px; }
.histo-bar { width: 70%; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 1px; }
.histo-col.low .histo-bar { background: #c0894e; }
.histo-h { font-size: 10px; color: var(--muted); margin-top: 3px; height: 12px; }

.timeline { display: flex; flex-direction: column; gap: 6px; }
.tl-row { display: flex; gap: 14px; align-items: baseline; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.tl-row.dump { border-left: 4px solid #c0894e; }
.tl-time { font-variant-numeric: tabular-nums; font-weight: 800; min-width: 56px; }
.tl-wd { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.tl-title { font-weight: 600; }
.tl-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tl-dump { color: #8a4b1f; background: #f6e7d6; border-radius: 5px; padding: 1px 6px; font-size: 12px; font-weight: 700; }

.history { list-style: none; padding: 0; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Compare outlets */
.compare-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 6px 0 16px; font-size: 14px; }
.compare-form select { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.compare-form button, .big-btn, .regen button { font: inherit; padding: 6px 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 8px; cursor: pointer; }
.big-btn { padding: 10px 20px; font-size: 16px; }
.regen { margin: 6px 0 14px; }
.regen button { background: #fff; color: var(--accent); }
.cmp-diff { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; line-height: 1.7; white-space: pre-wrap; font-size: 14px; }
.cmp-ins { background: #d8ecdf; color: #1d5b38; text-decoration: none; }
.cmp-del { background: #f3ddd2; color: #8a3413; }
.cmp-same { color: var(--ink); }

/* ---------- Lead images ---------- */
.lead-img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--line); }

/* Story rows on the agenda: montage thumbnail + text */
.story.has-img { display: flex; gap: 14px; align-items: flex-start; }
.story-thumb { flex: 0 0 132px; display: block; }
.story-thumb:hover { text-decoration: none; }
.story-body { flex: 1 1 auto; min-width: 0; }
.montage { display: grid; gap: 2px; width: 132px; height: 92px; border-radius: 8px; overflow: hidden; }
.montage.m-1 { grid-template-columns: 1fr; }
.montage.m-2 { grid-template-columns: 1fr 1fr; }
.montage.m-3, .montage.m-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.montage.m-3 .m-cell:first-child { grid-row: span 2; }
.m-cell { background-size: cover; background-position: center; background-color: var(--line); }
.img-variety { font-size: 11px; color: var(--accent); white-space: nowrap; }

/* Outlet "leading with" hero thumbnail */
.outlet-lead.has-img { padding-top: 10px; }
.lead-hero { display: block; margin: 0 0 8px; }
.lead-hero .lead-img { height: 120px; object-fit: cover; }

/* Story-page outlet card hero */
.outlet-hero { display: block; margin: 0 0 10px; }
.outlet-hero .lead-img { height: 168px; object-fit: cover; }

/* Image-change badges */
.swap-badge { font-size: 10px; color: var(--accent); white-space: nowrap; }

/* Lead-image swaps on the Edits page */
.imgrev-list { display: flex; flex-direction: column; gap: 16px; }
.imgrev { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.imgrev-headline { display: inline-block; font-weight: 600; margin: 4px 0; }
.imgrev-pair { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.imgrev-pair figure { margin: 0; text-align: center; }
.imgrev-pair img { height: 130px; width: auto; max-width: 220px; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
.imgrev-pair figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; }
.imgrev-arrow { font-size: 24px; color: var(--muted); }

/* ---------- Content depth + on-demand analysis ---------- */
.card-meta { margin: 2px 0 4px; }
.depth { font-size: 11px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.depth-full { background: #d8ecdf; color: var(--pos); }
.depth-snippet { background: #faf0d6; color: #7a5b12; }
.depth-headline { background: #f3ddd2; color: var(--neg); }

.bodyx { margin: 4px 0 8px; }
.bodyx summary { font-size: 12px; color: var(--accent); cursor: pointer; }
.bodyx-text {
  margin-top: 6px; font-size: 13px; line-height: 1.6; color: #3a372f; white-space: pre-wrap;
  max-height: 320px; overflow: auto; background: #fbf9f4; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
}

.depth-summary { font-size: 13px; color: var(--muted); margin: 8px 0; }
.depth-summary b { color: var(--ink); }
.analyze-cta {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 14px 16px; margin: 10px 0 16px; font-size: 14px;
}
.analyze-cta form { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.analyze-form { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.ghost-btn { font: inherit; padding: 6px 14px; border: 1px solid var(--accent); background: #fff; color: var(--accent); border-radius: 8px; cursor: pointer; }
.ghost-btn:hover { background: var(--accent); color: #fff; }

/* On-demand job progress panel (analyze / deep fetch) */
.job-panel {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 12px 16px; margin: 10px 0 16px;
}
.job-bar { height: 8px; background: #ece7da; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.job-bar-fill {
  height: 100%; width: 0; background: var(--accent); border-radius: 999px;
  transition: width .4s ease;
  background-image: linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.25) 75%, transparent 75%);
  background-size: 16px 16px; animation: job-stripes 1s linear infinite;
}
@keyframes job-stripes { from { background-position: 0 0; } to { background-position: 16px 0; } }
.job-status { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.job-items { list-style: none; padding: 0; margin: 0; }
.job-items .ji { font-size: 13px; padding: 2px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.ji-running { color: var(--ink); }
.ji-ok { color: var(--pos); }
.ji-failed, .ji-error { color: var(--neg); }

/* Search */
.search-form { display: flex; gap: 8px; margin: 6px 0 16px; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-form button { font: inherit; padding: 9px 18px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 8px; cursor: pointer; }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.sr { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--lean); border-radius: 10px; padding: 12px 14px; }
.sr-thumb { flex: 0 0 110px; }
.sr-thumb img { width: 110px; height: 74px; object-fit: cover; border-radius: 6px; display: block; }
.sr-body { min-width: 0; }
.sr-title { font-weight: 700; font-size: 17px; }
.sr-snip { font-size: 13px; color: #3a372f; margin: 6px 0 0; }
mark { background: #fbe6b8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* Sourcing mix (propaganda-model sourcing filter) */
.elite-meter { height: 14px; border-radius: 999px; overflow: hidden; background: var(--pos); margin: 8px 0 4px; border: 1px solid var(--line); }
.elite-fill { height: 100%; background: var(--neg); }
.voice-list { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 4px; max-width: 520px; }
.voice-row { display: grid; grid-template-columns: 150px 1fr 36px; align-items: center; gap: 8px; font-size: 13px; }
.voice-bar { background: #ece7da; border-radius: 999px; height: 10px; overflow: hidden; }
.voice-fill { display: block; height: 100%; border-radius: 999px; }
.vf-elite { background: var(--neg); }
.vf-indep { background: var(--pos); }

.back { font-size: 14px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; border-top: 1px solid var(--line); }
code { background: #ece7da; padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
