/* HHD — Hindu/Hindutva/India Research Platform */

/* ── Layout anchors (HHD full-viewport grid) ─────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 48px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
}
.sidebar {
  grid-column: 1;
  grid-row: 2;
  overflow-y: auto;
  overflow-x: hidden;
}
.main {
  grid-column: 2;
  grid-row: 2;
  /* The .pane inside is the real scroller. .main must never scroll — but
     overflow:hidden still makes it a *programmatic* scroll container, so
     scrollIntoView() can scroll it (to clear the sticky header) and trap the
     view (wheel can't undo it). We DON'T use overflow:clip here — clip changes
     the formatting context and broke the pane's own scrolling. Instead a JS
     guard (_guardMainScroll in app.js) snaps .main back to 0 if it's ever
     scrolled, and the Home nav links scroll the pane directly. */
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.pane {
  display: none;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px;
  box-sizing: border-box;
  animation: fadeIn .15s ease;
}
.pane.active {
  display: block;
}
/* Extracted from dossier_builder.html */


/* ── Design tokens ── */
:root {
  --bg: #f8f7f4; --bg2: #ffffff; --bg3: #f1efe8;
  --border: rgba(0,0,0,0.1); --border2: rgba(0,0,0,0.18);
  --text: #1a1a18; --text2: #5a5a55; --text3: #888780;
  --saffron: #E8A23A; --saffron2: #C07A18; --saffron-bg: #FFF3DC; --saffron-text: #5A3000;
  --red: #E24B4A; --red-bg: #FDEAEA; --red-text: #8B1C1C;
  --green: #1D9E75; --green-bg: #EAF5E2; --green-text: #2A5C10;
  --blue: #3B8BD4; --blue-bg: #E6F0FB; --blue-text: #1A4A7C;
  --r: 8px; --r2: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Consolas', 'Monaco', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; }
/* ── Links — open in new tab via marked renderer; styled to be visibly clickable ── */
a { color: #1a6bb5; text-decoration: underline; cursor: pointer; }
a:hover { color: #0d4a82; }
a:visited { color: #6b3a9e; }
/* Links inside content areas inherit size; nav/button links override below */
.nav-item a, .btn a { color: inherit; text-decoration: none; }
/* ── Layout ── */
.app { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: 48px 1fr; height: 100vh; overflow: hidden; }
.topbar { grid-column: 1/-1; background: var(--bg2); border-bottom: 0.5px solid var(--border); display: flex; align-items: center; padding: 0 16px; gap: 12px; z-index: 10; }
.sidebar { background: var(--bg2); border-right: 0.5px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; }
/* ── Topbar ── */
.brand { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.brand svg { color: var(--saffron); }
.lens-pill { background: var(--saffron-bg); color: var(--saffron-text); border: 0.5px solid var(--saffron); font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.ml-auto { margin-left: auto; }
/* ── Sidebar ── */
.nav-section { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; padding: 12px 16px 4px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 16px; cursor: pointer; font-size: 13px; color: var(--text2); border-left: 2px solid transparent; transition: background .1s; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--bg3); color: var(--text); border-left-color: var(--saffron); font-weight: 500; }
.nav-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--red-bg); color: var(--red-text); font-size: 10px; padding: 1px 6px; border-radius: 999px; font-weight: 500; }
/* ── Panes ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* ── Page header ── */
.ph { margin-bottom: 20px; }
.ph h1 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.ph p { font-size: 13px; color: var(--text2); }
/* ── Cards ── */
.card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--r2); padding: 16px 20px; margin-bottom: 12px; }
.card-title { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
/* ── Metrics ── */
.metrics { display: grid; gap: 10px; margin-bottom: 16px; }
.metrics-4 { grid-template-columns: repeat(4, 1fr); }
.metrics-3 { grid-template-columns: repeat(3, 1fr); }
.metrics-2 { grid-template-columns: repeat(2, 1fr); }
.metric { background: var(--bg3); border-radius: var(--r); padding: 12px 14px; }
.metric-label { font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.metric-value { font-size: 22px; font-weight: 600; }
.metric-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0.5px solid var(--border2); border-radius: var(--r); cursor: pointer; font-size: 13px; font-family: var(--font); background: transparent; color: var(--text); transition: background .1s; }
.btn:hover { background: var(--bg3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--saffron); border-color: var(--saffron2); color: #3A1F00; font-weight: 500; }
.btn-primary:hover:not(:disabled) { background: #D4902A; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
/* ── Badges ── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.badge-danger { background: var(--red-bg); color: var(--red-text); }
.badge-success { background: var(--green-bg); color: var(--green-text); }
.badge-info { background: var(--blue-bg); color: var(--blue-text); }
.badge-warn { background: var(--saffron-bg); color: var(--saffron-text); }
.badge-neutral { background: var(--bg3); color: var(--text2); }
/* ── Tables ── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 8px 10px; font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; border-bottom: 0.5px solid var(--border); background: var(--bg3); }
.tbl td { padding: 9px 10px; border-bottom: 0.5px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg3); }
.tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
/* ── Forms ── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 8px 12px; border: 0.5px solid var(--border2); border-radius: var(--r); font-size: 13px; font-family: var(--font); background: var(--bg2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--saffron); }
.field textarea { resize: vertical; min-height: 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* ── Tabs ── */
.tabs { display: flex; border-bottom: 0.5px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab { padding: 8px 14px; font-size: 13px; cursor: pointer; color: var(--text2); border-bottom: 2px solid transparent; margin-bottom: -0.5px; white-space: nowrap; flex-shrink: 0; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--saffron); font-weight: 500; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
/* ── Confidence pips ── */
.pips { display: flex; gap: 2px; align-items: center; }
.pip { width: 10px; height: 10px; border-radius: 2px; background: var(--border); }
.pip.on-5 { background: var(--green); }
.pip.on-4 { background: var(--blue); }
.pip.on-3 { background: var(--saffron); }
.pip.on-2 { background: #E8A23A88; }
.pip.on-1 { background: var(--red); }
/* ── Link type badges ── */
.direct { background: var(--green-bg); color: var(--green-text); font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.indirect { background: var(--blue-bg); color: var(--blue-text); font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.unresolved { background: var(--saffron-bg); color: var(--saffron-text); font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
/* ── Dossier layout ── */
.dossier-layout { display: grid; grid-template-columns: 210px 1fr; gap: 16px; }
.part-nav { display: flex; flex-direction: column; gap: 1px; }
/* top-level section rows */
.sec-parent { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: var(--r); cursor: pointer; font-size: 12px; font-weight: 500; color: var(--text); margin-top: 2px; user-select: none; }
.sec-parent:hover { background: var(--bg3); }
.sec-parent.active { background: var(--saffron-bg); color: var(--saffron-text); box-shadow: inset 3px 0 0 var(--saffron); }
.sec-num { width: 22px; height: 22px; border-radius: 5px; background: var(--bg3); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; font-weight: 700; color: var(--text2); }
.sec-parent.active .sec-num { background: var(--saffron); border-color: var(--saffron2); color: #3A1F00; }
.sec-parent.done .sec-num { background: var(--green-bg); border-color: var(--green); color: var(--green-text); }
.sec-toggle { margin-left: auto; font-size: 9px; color: var(--text3); flex-shrink: 0; transition: transform .15s; }
.sec-toggle.open { transform: rotate(90deg); }
/* child rows */
.sec-children { display: none; flex-direction: column; gap: 1px; padding-left: 8px; margin-bottom: 2px; }
.sec-children.open { display: flex; }
.sec-child { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: var(--r); cursor: pointer; font-size: 11px; color: var(--text2); border-left: 1.5px solid var(--border); }
.sec-child:hover { background: var(--bg3); color: var(--text); border-left-color: var(--text3); }
.sec-child.active { background: var(--saffron-bg); color: var(--saffron-text); font-weight: 600; border-left-color: var(--saffron); border-left-width: 3px; }
.sec-child.done { color: var(--text); }
.sec-child-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border2); flex-shrink: 0; }
.sec-child.done .sec-child-dot { background: var(--green); }
.sec-child.active .sec-child-dot { background: var(--saffron); }
/* grandchild rows */
.sec-grandchildren { display: flex; flex-direction: column; gap: 1px; padding-left: 12px; }
.sec-grandchild { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: var(--r); cursor: pointer; font-size: 11px; color: var(--text3); }
.sec-grandchild:hover { color: var(--text2); background: var(--bg3); }
.sec-grandchild.active { background: var(--saffron-bg); color: var(--saffron-text); font-weight: 600; box-shadow: inset 2px 0 0 var(--saffron); }
/* special labels */
.intro-badge { background: var(--blue-bg); color: var(--blue-text); font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 600; }
.concl-badge { background: var(--saffron-bg); color: var(--saffron-text); font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 600; }
.infog-badge { background: var(--green-bg); color: var(--green-text); font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 600; }
.sec-badge { font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 600; flex-shrink: 0; }
.sec-badge-abs, .sec-badge-intro { background: var(--blue-bg); color: var(--blue-text); }
.sec-badge-ev   { background: var(--green-bg); color: var(--green-text); }
.sec-badge-concl{ background: var(--saffron-bg); color: var(--saffron-text); }
.sec-badge-app, .sec-badge-info { background: var(--bg3); color: var(--text2); }
.review-dot { color: var(--red); font-size: 10px; margin-left: 2px; }
/* ── Wizard ── */
.wizard-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.wstep { width: 30px; height: 30px; border-radius: 50%; border: 0.5px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text2); flex-shrink: 0; }
.wstep.done { background: var(--green); border-color: var(--green); color: #fff; }
.wstep.active { background: var(--saffron); border-color: var(--saffron2); color: #3A1F00; }
.wline { flex: 1; height: 1px; background: var(--border); }
/* ── Claim card ── */
.claim-card { background: var(--bg3); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; }
.claim-card:hover { background: var(--bg2); border: 0.5px solid var(--border); }
/* ── Alert ── */
.alert { padding: 10px 14px; border-radius: var(--r); font-size: 12px; margin-bottom: 12px; }
.alert-warn { background: var(--saffron-bg); border: 0.5px solid var(--saffron); color: var(--saffron-text); }
.alert-danger { background: var(--red-bg); border: 0.5px solid var(--red); color: var(--red-text); }
.alert-success { background: var(--green-bg); border: 0.5px solid var(--green); color: var(--green-text); }
/* ── Streaming output ── */
.stream-box { background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--r); padding: 14px 16px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; max-height: 420px; overflow-y: auto; font-family: var(--mono); color: var(--text); }
/* ── Review Sandbox ── */
.review-sandbox { border: 1.5px solid var(--saffron); border-radius: var(--r2); background: var(--bg2); overflow: hidden; margin-top: 12px; }
.review-sandbox-header { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: var(--saffron-bg); border-bottom: 0.5px solid var(--saffron); }
.review-sandbox-title { font-size: 12px; font-weight: 600; color: var(--saffron-text); display: flex; align-items: center; gap: 6px; }
.review-sandbox-stream { padding: 14px 16px; font-size: 13px; line-height: 1.8; color: var(--text); max-height: 520px; overflow-y: auto; }
.review-sandbox-stream h1,.review-sandbox-stream h2,.review-sandbox-stream h3 { font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.review-sandbox-stream p { margin-bottom: 8px; }
.review-sandbox-stream ul,.review-sandbox-stream ol { margin: 4px 0 8px 18px; }
.review-sandbox-stream table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0; }
.review-sandbox-stream th { background: var(--bg3); padding: 6px 8px; text-align: left; font-weight: 600; border: 0.5px solid var(--border); }
.review-sandbox-stream td { padding: 5px 8px; border: 0.5px solid var(--border); }
.review-sandbox-actions { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg3); border-top: 0.5px solid var(--border); flex-wrap: wrap; }
.review-sandbox-status { font-size: 11px; color: var(--text2); margin-left: auto; }
.review-edit-box { width: 100%; min-height: 180px; padding: 10px 12px; border: 0.5px solid var(--border2); border-radius: var(--r); font-size: 12px; font-family: var(--mono); background: var(--bg); color: var(--text); resize: vertical; display: none; }
.review-sandbox.streaming .review-sandbox-actions { opacity: .5; pointer-events: none; }
/* Review-required banner at top of sandbox */
.review-sandbox-gate { font-size: 11px; background: #FFF3DC; border-bottom: 0.5px solid var(--saffron); padding: 6px 14px; color: var(--saffron-text); display: flex; align-items: center; gap: 6px; }
.review-sandbox-gate strong { font-weight: 600; }
.stream-cursor { display: inline-block; width: 8px; height: 14px; background: var(--saffron); animation: blink .7s step-end infinite; vertical-align: middle; margin-left: 1px; }
/* ── Section narrative panel ── */
.narrative-panel { border: 0.5px solid var(--border); border-radius: var(--r2); margin-top: 12px; overflow: hidden; }
.narrative-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: var(--bg3); border-bottom: 0.5px solid var(--border); cursor: pointer; }
.narrative-panel-title { font-size: 12px; font-weight: 600; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.narrative-panel-
.narrative-panel-body.open { display: block; }
.narrative-panel-body h1,.narrative-panel-body h2,.narrative-panel-body h3 { font-size: 13px; font-weight: 600; margin: 10px 0 4px; color: var(--text); }
.narrative-panel-body p { margin-bottom: 8px; }
.narrative-panel-body ul,.narrative-panel-body ol { margin: 6px 0 8px 18px; }
.narrative-panel-body li { margin-bottom: 3px; }
.narrative-panel-body strong { font-weight: 600; }
.narrative-panel-body em { font-style: italic; color: var(--text2); }
.narrative-panel-body code { background: var(--bg3); padding: 1px 5px; border-radius: 3px; font-family: var(--mono); font-size: 11px; }
.narrative-panel-body blockquote { border-left: 3px solid var(--saffron); padding: 6px 12px; margin: 8px 0; background: var(--saffron-bg); font-style: italic; }
.narrative-generating { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 12px; color: var(--text2); }
.narrative-cite { font-size: 11px; color: var(--text3); margin-top: 10px; padding-top: 8px; border-top: 0.5px solid var(--border); }
@keyframes blink { 50% { opacity: 0; } }
/* ── Progress bar ── */
.progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--saffron); border-radius: 2px; transition: width .3s; }
/* ── Network SVG ── */
.network-svg { background: var(--bg3); border-radius: var(--r); overflow: hidden; }
/* ── Bias analyzer ── */
.bias-flag { border-left: 3px solid var(--red); background: var(--red-bg); border-radius: 0 var(--r) var(--r) 0; padding: 8px 12px; margin-bottom: 8px; }
.bias-flag-pos { border-left-color: var(--green); background: var(--green-bg); }
.bias-flag-title { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.bias-flag-meta { font-size: 11px; color: var(--text2); }
.bias-flag-
/* ── API key input area ── */
.apikey-panel { background: var(--saffron-bg); border: 0.5px solid var(--saffron); border-radius: var(--r2); padding: 14px 16px; margin-bottom: 16px; }
/* ── Scrollbars ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
/* ── Toast ── */
#toast { position: fixed; bottom: 24px; right: 24px; background: #1a1a18; color: #fff; padding: 10px 18px; border-radius: var(--r); font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 999; max-width: 400px; }
#toast.show { opacity: 1; }
/* ── Loading spinner ── */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--saffron); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ── Responsive ── */
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .metrics-4 { grid-template-columns: repeat(2, 1fr); }
}
/* ── Advanced Options Panel ── */
.adv-row { margin-bottom:12px; }
.adv-label { font-size:12px;font-weight:600;color:var(--text);margin-bottom:2px; }
.adv-val   { font-size:12px;font-weight:700;color:var(--saffron-text);margin-left:6px; }
.adv-desc  { font-size:11px;color:var(--text3);line-height:1.4;margin-bottom:4px; }
.adv-slider { width:100%;accent-color:var(--saffron);cursor:pointer; }
.analysis-mode-card { display:flex;flex-direction:column;gap:4px;background:var(--bg3);border:1.5px solid var(--border);border-radius:var(--r2);padding:12px 14px;cursor:pointer;transition:border-color .15s,background .15s; }
.analysis-mode-card:hover { border-color:var(--saffron);background:var(--saffron-bg); }
.analysis-mode-card.selected { border-color:var(--saffron);background:var(--saffron-bg); }
.analysis-mode-card .amc-icon { font-size:20px;margin-bottom:4px; }
.analysis-mode-card .amc-title { font-size:13px;font-weight:700;color:var(--text); }
.analysis-mode-card .amc-desc { font-size:11px;color:var(--text2);line-height:1.5; }
/* ── Bias Engine cards (inline selector on Bias pane) ── */
.bias-engine-card { display:flex;flex-direction:column;align-items:center;gap:3px;background:var(--bg3);border:1.5px solid var(--border);border-radius:var(--r);padding:8px 6px;cursor:pointer;transition:border-color .12s,background .12s;text-align:center;user-select:none; }
.bias-engine-card:hover { border-color:var(--saffron);background:var(--saffron-bg); }
.bias-engine-card.selected { border-color:var(--saffron);background:var(--saffron-bg); }
.bias-engine-card .bec-icon  { font-size:18px;line-height:1; }
.bias-engine-card .bec-title { font-size:12px;font-weight:700;color:var(--text); }
.bias-engine-card .bec-desc  { font-size:10px;color:var(--text2);line-height:1.3; }
.bias-engine-card.selected .bec-title { color:var(--saffron-text); }
.bias-engine-card.selected .bec-desc  { color:var(--saffron-text);opacity:.8; }
.bias-tab { background:none;border:none;border-bottom:2.5px solid transparent;padding:6px 14px;font-size:12px;font-weight:500;font-family:var(--font);color:var(--text2);cursor:pointer;margin-bottom:-1px;transition:color .1s; }
.bias-tab:hover { color:var(--text); }
.bias-tab.active { color:var(--saffron-text);border-bottom-color:var(--saffron);font-weight:600; }
/* ── Sandbox follow-up reply panel ── */
.sandbox-followup-btn:hover { filter: brightness(0.95); }
/* ── Print ── */
/* ── Researcher Profile ── */
.rp-header-card { padding: 14px 16px !important; }
.rp-header-layout { display: flex; align-items: flex-start; gap: 14px; }
.rp-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--saffron-bg); border: 2px solid var(--saffron); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--saffron-text); flex-shrink: 0; }
.rp-name-input { font-size: 16px; font-weight: 600; border: none; border-bottom: 1.5px solid var(--border2); background: transparent; color: var(--text); font-family: var(--font); padding: 2px 4px; flex: 1; min-width: 200px; }
.rp-name-input:focus { outline: none; border-bottom-color: var(--saffron); }
.rp-flag-sel { font-size: 11px; padding: 3px 6px; border: 0.5px solid var(--border2); border-radius: var(--r); font-family: var(--font); background: var(--bg2); color: var(--text); }
.rp-field-sm { font-size: 12px; padding: 5px 8px; border: 0.5px solid var(--border2); border-radius: var(--r); font-family: var(--font); background: var(--bg2); color: var(--text); width: 100%; }
.rp-layout { display: grid; grid-template-columns: 200px 1fr; gap: 12px; margin-top: 10px; align-items: start; }
.rp-nav { position: sticky; top: 60px; background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.rp-nav-section { font-size: 9px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .09em; padding: 10px 12px 3px; }
.rp-nav-item { display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 12px; cursor: pointer; color: var(--text2); border-left: 2px solid transparent; transition: background .1s; }
.rp-nav-item:hover { background: var(--bg3); }
.rp-nav-item.active { color: var(--saffron-text); background: var(--saffron-bg); border-left-color: var(--saffron); font-weight: 500; }
.rp-nav-item.done::after { content: '✓'; margin-left: auto; font-size: 10px; color: var(--green-text); }
.rp-nav-item .rp-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border2); flex-shrink: 0; }
.rp-nav-item.active .rp-nav-dot { background: var(--saffron); }
.rp-content { display: flex; flex-direction: column; gap: 12px; min-height: 400px; }
.rp-section { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.rp-section-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg3); border-bottom: 0.5px solid var(--border); }
.rp-section-title { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.rp-section-num { font-size: 10px; font-weight: 700; color: var(--text3); background: var(--bg2); border: 0.5px solid var(--border); border-radius: 3px; padding: 1px 6px; }
.rp-section-
.rp-flag-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.rp-flag-flagged { background: var(--red-bg); color: var(--red-text); }
.rp-flag-monitor  { background: var(--saffron-bg); color: var(--saffron-text); }
.rp-flag-neutral  { background: var(--bg3); color: var(--text2); }
.rp-flag-pro      { background: var(--green-bg); color: var(--green-text); }
.rp-pub-row { padding: 8px 0; border-bottom: 0.5px solid var(--border); display: grid; grid-template-columns: 1fr 80px 60px; gap: 8px; align-items: start; font-size: 12px; }
.rp-pub-row:last-child { border-bottom: none; }
.rp-pub-title { font-weight: 500; color: var(--text); margin-bottom: 2px; }
.rp-pub-meta { font-size: 11px; color: var(--text2); }
.rp-network-svg { background: var(--bg3); border-radius: var(--r); padding: 8px; overflow: hidden; }
.rp-sync-badge { font-size: 10px; background: var(--green-bg); color: var(--green-text); padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.rp-bias-chip { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 3px; }
.rp-bias-high { background: var(--red-bg); color: var(--red-text); }
.rp-bias-med  { background: var(--saffron-bg); color: var(--saffron-text); }
.rp-bias-low  { background: var(--bg3); color: var(--text2); }
/* ── Provider / Settings UI ── */
.mode-opt { border: 0.5px solid var(--border2); border-radius: var(--r); padding: 10px 12px; cursor: pointer; transition: background .1s; }
.mode-opt:hover { background: var(--bg3); }
.mode-opt.active { border-color: var(--saffron); background: var(--saffron-bg); }
.provider-card { border: 0.5px solid var(--border); border-radius: var(--r2); padding: 14px 16px; margin-bottom: 10px; transition: border-color .15s; }
.provider-card.enabled { border-color: var(--saffron); }
.provider-card.primary-active { border-color: var(--green); }
.provider-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.provider-logo { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.provider-name { font-weight: 600; font-size: 13px; flex: 1; }
.provider-
.provider-test-result { font-size: 11px; margin-top: 6px; line-height: 1.5; }
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track { position: absolute; inset: 0; background: var(--border2); border-radius: 10px; cursor: pointer; transition: background .2s; }
.toggle input:checked + .toggle-track { background: var(--saffron); }
.toggle-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s; pointer-events: none; }
.toggle input:checked ~ .toggle-thumb { transform: translateX(16px); }
.provider-primary-badge { background: var(--green-bg); color: var(--green-text); font-size: 10px; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
@media print { .sidebar, .topbar { display: none !important; }  }
/* ── Search activity panel ── */
.search-activity { background: var(--blue-bg); border: 0.5px solid var(--blue); border-radius: var(--r); padding: 10px 14px; margin-bottom: 10px; }
.search-activity-title { font-size: 11px; font-weight: 600; color: var(--blue-text); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.search-query-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: var(--blue-text); border-bottom: 0.5px solid rgba(59,139,212,.15); }
.search-query-row:last-child { border-bottom: none; }
.search-query-row .sq-icon { font-size: 13px; flex-shrink: 0; }
.search-query-row .sq-text { flex: 1; }
.search-query-row .sq-status { font-size: 10px; font-weight: 600; }
/* ── Source cards ── */
.sources-panel { margin-top: 12px; }
.sources-title { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.source-card { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--bg3); border-radius: var(--r); margin-bottom: 6px; }
.source-quality { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.sq-1 { background: var(--green-bg); color: var(--green-text); }
.sq-2 { background: var(--blue-bg); color: var(--blue-text); }
.sq-3 { background: var(--saffron-bg); color: var(--saffron-text); }
.sq-4 { background: var(--bg2); color: var(--text2); }
.source-card-
.source-card-title { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-card-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }
/* ── Intro / conclusion part styling ── */
.intro-badge { background: var(--blue-bg); color: var(--blue-text); font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 600; flex-shrink: 0; }
.concl-badge { background: var(--saffron-bg); color: var(--saffron-text); font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 600; flex-shrink: 0; }
/* ── Intro / conclusion content ── */
.intro-card { background: var(--blue-bg); border: 0.5px solid var(--blue); border-radius: var(--r2); padding: 18px 20px; margin-bottom: 12px; }
.intro-card h2 { font-size: 15px; font-weight: 600; color: var(--blue-text); margin-bottom: 6px; }
.intro-card p { font-size: 13px; color: var(--text); line-height: 1.6; }
.concl-card { background: var(--saffron-bg); border: 0.5px solid var(--saffron); border-radius: var(--r2); padding: 18px 20px; margin-bottom: 12px; }
.concl-card h2 { font-size: 15px; font-weight: 600; color: var(--saffron-text); margin-bottom: 6px; }
.findings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.finding-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--r); padding: 10px 12px; }
.finding-n { font-size: 20px; font-weight: 700; color: var(--red); }
.finding-label { font-size: 11px; color: var(--text2); margin-top: 2px; }
.lens-decl { background: var(--saffron-bg); border-left: 3px solid var(--saffron); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: 12px; color: var(--saffron-text); font-style: italic; margin-top: 12px; }
/* ── Lens option ── */
.lens-opt { border: 0.5px solid var(--border2); border-radius: var(--r); padding: 12px 14px; cursor: pointer; margin-bottom: 8px; }
.lens-opt:hover { border-color: var(--saffron); }
.lens-opt.selected { border-color: var(--saffron); background: var(--saffron-bg); }
.lens-opt h3 { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.lens-opt p { font-size: 12px; color: var(--text2); }
/* ── AI Research Chat ── */
.chat-layout { display: flex; flex-direction: column; height: calc(100vh - 120px); }
.chat-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; flex-wrap: wrap; border-bottom: 0.5px solid var(--border); margin-bottom: 0; }
.chat-ctx-sel { font-size: 12px; padding: 5px 9px; border: 0.5px solid var(--border2); border-radius: var(--r); font-family: var(--font); background: var(--bg2); color: var(--text); flex: 1; min-width: 160px; max-width: 300px; }
.chat-provider-badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--saffron-bg); color: var(--saffron-text); font-weight: 600; border: 0.5px solid var(--saffron); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.chat-avatar.ai { background: var(--saffron-bg); color: var(--saffron-text); border: 1px solid var(--saffron); }
.chat-avatar.user { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.chat-bubble { max-width: 78%; border-radius: var(--r2); padding: 10px 14px; font-size: 13px; line-height: 1.7; position: relative; }
.chat-bubble.ai { background: var(--bg2); border: 0.5px solid var(--border); border-bottom-left-radius: 3px; }
.chat-bubble.user { background: var(--saffron-bg); border: 0.5px solid var(--saffron); border-bottom-right-radius: 3px; color: var(--saffron-text); }
.chat-bubble h1,.chat-bubble h2,.chat-bubble h3 { font-size: 13px; font-weight: 600; margin: 8px 0 3px; }
.chat-bubble p { margin-bottom: 6px; }
.chat-bubble ul,.chat-bubble ol { margin: 4px 0 6px 16px; }
.chat-bubble table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0; }
.chat-bubble th { background: var(--bg3); padding: 5px 8px; font-weight: 600; border: 0.5px solid var(--border); text-align: left; }
.chat-bubble td { padding: 4px 8px; border: 0.5px solid var(--border); }
.chat-bubble code { background: var(--bg3); padding: 1px 5px; border-radius: 3px; font-family: var(--mono); font-size: 11px; }
.chat-bubble-actions { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.chat-meta { font-size: 10px; color: var(--text3); margin-top: 4px; }
.chat-input-area { border-top: 0.5px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input { flex: 1; border: 0.5px solid var(--border2); border-radius: var(--r2); padding: 10px 12px; font-size: 13px; font-family: var(--font); background: var(--bg2); color: var(--text); resize: none; min-height: 44px; max-height: 160px; line-height: 1.5; }
.chat-input:focus { outline: none; border-color: var(--saffron); }
.chat-send-btn { width: 44px; height: 44px; border-radius: var(--r); background: var(--saffron); border: none; color: #3A1F00; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send-btn:hover { background: var(--saffron2); }
.chat-send-btn:disabled { opacity: .4; cursor: default; }
.chat-hint { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 12px; }
.chat-typing { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--r2); font-size: 12px; color: var(--text2); max-width: 200px; }
.chat-typing-dots { display: flex; gap: 3px; }
.chat-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); animation: chatBounce 1.2s infinite; }
.chat-typing-dot:nth-child(2) { animation-delay: .2s; }
.chat-typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes chatBounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-5px)} }
/* ── Rich Text Editor (in sandbox) ── */
.rte-toolbar { display: flex; gap: 2px; padding: 6px 10px; background: var(--bg3); border-bottom: 0.5px solid var(--border); flex-wrap: wrap; align-items: center; }
.rte-btn { width: 28px; height: 26px; border: 0.5px solid transparent; border-radius: 3px; background: none; cursor: pointer; font-size: 13px; font-family: var(--font); color: var(--text2); display: flex; align-items: center; justify-content: center; }
.rte-btn:hover { background: var(--bg2); border-color: var(--border); color: var(--text); }
.rte-btn.active { background: var(--saffron-bg); color: var(--saffron-text); border-color: var(--saffron); }
.rte-sep { width: 1px; height: 20px; background: var(--border); margin: 0 3px; }
.rte-sel { font-size: 11px; padding: 3px 6px; border: 0.5px solid var(--border2); border-radius: 3px; background: var(--bg2); color: var(--text); font-family: var(--font); height: 26px; }
.rte-editor { padding: 14px 16px; font-size: 13px; line-height: 1.8; color: var(--text); min-height: 200px; max-height: 420px; overflow-y: auto; outline: none; }
.rte-editor:focus { box-shadow: inset 0 0 0 1.5px var(--saffron); }
.rte-editor h1 { font-size: 16px; font-weight: 700; margin: 8px 0 4px; }
.rte-editor h2 { font-size: 14px; font-weight: 600; margin: 8px 0 4px; }
.rte-editor h3 { font-size: 13px; font-weight: 600; margin: 6px 0 3px; }
.rte-editor table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0; }
.rte-editor th { background: var(--bg3); padding: 5px 8px; border: 0.5px solid var(--border); font-weight: 600; text-align: left; }
.rte-editor td { padding: 4px 8px; border: 0.5px solid var(--border); }
.rte-editor blockquote { border-left: 3px solid var(--saffron); padding: 4px 12px; margin: 6px 0; background: var(--saffron-bg); color: var(--saffron-text); font-style: italic; }
.rte-editor ul { margin: 4px 0 6px 20px; }
.rte-editor ol { margin: 4px 0 6px 20px; }
.rte-tabs { display: flex; border-bottom: 0.5px solid var(--border); }
.rte-tab { padding: 5px 14px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text2); border-bottom: 2px solid transparent; }
.rte-tab.active { color: var(--saffron-text); border-bottom-color: var(--saffron); }
/* ── Funding flow ── */
.flow-grid { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; gap: 4px; }
.flow-node { background: var(--bg3); border: 0.5px solid var(--border); border-radius: var(--r); padding: 10px 12px; text-align: center; }
.flow-node.target { border-color: var(--saffron); background: var(--saffron-bg); }
.flow-node.flagged { border-color: var(--red); }
.flow-arrow { text-align: center; font-size: 20px; color: var(--text3); }
/* ── Export ── */
.export-opt { border: 0.5px solid var(--border); border-radius: var(--r2); padding: 14px 16px; cursor: pointer; }
.export-opt:hover { border-color: var(--saffron); background: var(--saffron-bg); }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* ── Rule card in browser ── */
.rule-card { border: 0.5px solid var(--border); border-radius: var(--r); padding: 10px 12px; margin-bottom: 6px; }
.rule-card.neg { border-left: 3px solid var(--red); }
.rule-card.pos { border-left: 3px solid var(--green); }
.rule-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.rule-field { background: var(--bg3); border-radius: 5px; padding: 5px 8px; font-size: 11px; }
.rule-field-label { color: var(--text3); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.inferred { color: var(--saffron-text); font-style: italic; }
/* ── Status dot ── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }



/* ── Export preview CSS (block 2) ─ scoped to .export-preview ── */
.export-preview .export-preview h1 {color:#c16a00}.export-preview table {border-collapse:collapse;width:100%}.export-preview td, .export-preview th {border:1px solid #ccc;padding:6px 10px}

/* ── Export preview CSS (block 3) ─ scoped to .export-preview ── */
.export-preview .export-preview h1 { color: #5A3000; border-bottom: 2px solid #E8A23A; padding-bottom: 8px; }.export-preview h2 { color: #3A1F00; border-bottom: 1px solid #E8A23A; padding-bottom: 4px; margin-top: 28px; }.export-preview h3 { color: #5A3000; }.export-preview table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }.export-preview th { background: #F5E6D0; padding: 7px 10px; text-align: left; border: 1px solid #d4a76a; font-weight: 600; }.export-preview td { padding: 6px 10px; border: 1px solid #d4a76a; }.export-preview .header-meta { background: #FFF8F0; border: 1px solid #E8A23A; border-radius: 6px; padding: 12px 16px; margin-bottom: 24px; font-size: 13px; line-height: 1.8; }.export-preview .lens-decl { background: #FFF3DC; border-left: 3px solid #E8A23A; padding: 10px 14px; border-radius: 0 4px 4px 0; font-size: 12px; color: #5A3000; font-style: italic; margin-top: 24px; }.export-preview blockquote { border-left: 3px solid #E8A23A; padding: 4px 12px; margin: 10px 0; background: #FFF8F0; }.export-preview code { background: #f5f5f5; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
  @media print {.export-preview  }

/* ── Export preview CSS (block 4) ─ scoped to .export-preview ── */
.export-preview .export-preview h1, .export-preview h2, .export-preview h3 {font-weight:700;margin-top:1.5rem}.export-preview h1 {color:#c16a00}.export-preview blockquote {border-left:3px solid #c16a00;padding-left:1rem;color:#5a5a55;margin-left:0}.export-preview .meta {font-size:.85rem;color:#888780;margin-bottom:2rem;padding-bottom:1rem;border-bottom:1px solid #e0ded8}.export-preview .lens {font-size:.8rem;color:#888780;margin-top:2rem;padding-top:1rem;border-top:1px solid #e0ded8;font-style:italic}

/* ── Export preview CSS (block 5) ─ scoped to .export-preview ── */
.export-preview .export-preview {font-family:sans-serif;max-width:900px;margin:40px auto;padding:20px;color:#1a1a18}.export-preview h1 {color:#5A3000}.export-preview h2 {color:#3A1F00;border-bottom:2px solid #E8A23A;padding-bottom:4px}.export-preview .flag {color:#8B1C1C;background:#FDEAEA;padding:4px 8px;border-radius:4px;font-size:12px}.export-preview .lens {background:#FFF3DC;border:1px solid #E8A23A;padding:10px 14px;border-radius:8px;font-size:13px;margin:20px 0}
/* ── Chat pane: input on top, messages scroll below ── */
#pane-chat {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
#pane-chat .ph {
  padding: 20px 24px 12px;
  flex-shrink: 0;
}
#pane-chat .chat-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#pane-chat .chat-input-area {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  background: var(--bg2);
}
#pane-chat .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

/* ── Per-feature admin page header (v137 — split panes) ─────────── */
/* Used by panes/admin_libraries / admin_base_rules / admin_source_registry
   / admin_learned_rules / admin_matcher / admin_conversions /
   admin_samya_counter. Brand-aligned strip with a "← Rules Admin" back-
   button so the user can hop between sub-pages without losing their
   place. */
.admin-page-strip { display: flex; align-items: center; gap: 14px; padding: 12px 6px 14px; border-bottom: 0.5px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.admin-page-strip .ap-back { font-size: 12px; font-weight: 700; color: var(--text2); background: transparent; border: 0.5px solid var(--border2); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-family: var(--font); transition: .15s; }
.admin-page-strip .ap-back:hover { color: var(--red-text); border-color: var(--red-text); background: var(--red-bg); }
.admin-page-strip .ap-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.admin-page-strip .ap-title .ap-icon { font-size: 22px; }
.admin-page-strip .ap-sub { font-size: 11.5px; color: var(--text3); font-family: var(--mono); background: var(--bg3); padding: 2px 8px; border-radius: 4px; }
.admin-page-strip .ap-spacer { flex: 1; min-width: 8px; }

/* ── Published listing panes (Past Bias / Quick Analyses / Counter-Narratives) ── */
.pub-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 32px 60px; }
.pub-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--text); margin: 0 0 4px; }
.pub-head p { color: var(--text2); font-size: 14px; margin: 0 0 6px; }
.pub-count { font-size: 12px; color: var(--text3); font-family: var(--mono); }
.pub-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.pub-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; transition: box-shadow .15s, border-color .15s; }
.pub-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); border-color: var(--border2); }
.pub-card-head { display: flex; align-items: flex-start; gap: 12px; }
.pub-card-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; flex: 1; }
.pub-card-title a { color: inherit; text-decoration: none; }
.pub-card-title a:hover { color: var(--red-text); }
.pub-verdict { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.pub-verdict.vAnti { color: #A81F2E; background: #FBE9EA; }
.pub-verdict.vPro  { color: #1F8A5B; background: #E3F4EA; }
.pub-verdict.vMix  { color: #B6781A; background: #FBEFD7; }
.pub-verdict.vNeu  { color: var(--text2); background: var(--bg3); }
.pub-meta { font-size: 12px; color: var(--text3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-family: var(--mono); }
.pub-summary { font-size: 13.5px; color: var(--text2); line-height: 1.5; margin-top: 10px; }
.pub-idxstrip { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; font-family: var(--mono); }
.pub-body { font-size: 14px; color: var(--text); line-height: 1.55; margin-top: 8px; white-space: pre-wrap; }
.pub-cn-img { max-width: 320px; border-radius: 10px; margin-top: 10px; display: block; border: 1px solid var(--border); }
.pub-cn-tag { font-size: 11px; font-weight: 700; color: var(--text2); background: var(--bg3); padding: 2px 8px; border-radius: 999px; }
.pub-src { font-size: 12px; color: var(--text3); margin-top: 10px; }
.pub-src a { color: var(--blue-text, #1E8AC0); }
.pub-refs { font-size: 11.5px; color: var(--text3); margin-top: 6px; }
.pub-empty { padding: 40px; text-align: center; color: var(--text3); font-size: 14px; border: 1px dashed var(--border2); border-radius: 12px; }
.pub-empty strong { color: var(--text2); }
