:root {
  --bg: #0f1419;
  --panel: #1a2332;
  --panel-border: #2a3a4f;
  --text: #e7ecf3;
  --muted: #8b9bb4;
  --accent: #5b9fd4;
  --accent-hot: #f0a05a;
  --input-bg: #121a24;
  --danger: #e06c75;
  --ok: #98c379;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text); font-family: var(--font);
  overflow: hidden;
}

#app {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto 1fr;
  height: 100vh;
}

header {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--panel-border);
}

header h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

header .stats {
  color: var(--muted);
  font-size: 0.82rem;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  max-width: 520px;
}

#search {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.9rem;
  outline: none;
}
#search:focus { border-color: var(--accent); }

button {
  background: var(--accent);
  color: #0a1018;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--panel-border);
  font-weight: 500;
}
button.ghost:hover { color: var(--text); border-color: var(--muted); }

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.examples span { color: var(--muted); font-size: 0.78rem; }
.chip {
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); }

#graph {
  min-width: 0;
  min-height: 0;
  background: radial-gradient(ellipse at center, #152030 0%, var(--bg) 70%);
  border-right: 1px solid var(--panel-border);
}

#side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  overflow: hidden;
}

#side .panel-head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.92rem;
  font-weight: 600;
}

#side .panel-body {
  flex: 1;
  overflow: auto;
  padding: 12px 14px 20px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}

.meta-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 8px;
  margin-bottom: 6px;
}
.meta-row .k { color: var(--muted); }
.meta-row .v { word-break: break-word; }
.meta-row .v.path { font-family: ui-monospace, monospace; font-size: 0.78rem; color: var(--ok); }

.summary-box {
  margin: 10px 0;
  padding: 8px 10px;
  background: var(--input-bg);
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow: auto;
}

.neighbors h3 {
  margin: 14px 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
}
.neighbors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.neighbors li {
  padding: 6px 8px;
  margin-bottom: 4px;
  background: var(--input-bg);
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
}
.neighbors li:hover { border-color: var(--accent); }
.neighbors .rel {
  color: var(--accent-hot);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 4px;
}
.neighbors .ntype {
  color: var(--muted);
  font-size: 0.72rem;
  margin-left: 4px;
}

.empty-hint {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

#status {
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0 4px;
}
#status.err { color: var(--danger); }

@media (max-width: 900px) {
  #app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 55vh 1fr;
  }
  #graph { border-right: none; border-bottom: 1px solid var(--panel-border); }
}


/* 0.3.1 unified tabs + prompt results */
.mode-tabs {
  display: flex;
  gap: 4px;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 3px;
}
.mode-tabs .tab {
  background: transparent;
  color: var(--muted);
  padding: 5px 12px;
  font-size: 0.82rem;
  border-radius: 6px;
  cursor: pointer;
}
.mode-tabs .tab:hover { color: var(--text); }
.mode-tabs .tab.active {
  background: var(--accent);
  color: #0a1018;
  font-weight: 600;
}

.prompt-list { margin-top: 10px; }
.prompt-list h3 {
  margin: 12px 0 6px;
  font-size: 0.88rem;
  color: var(--accent-hot);
}
.prompt-card {
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.prompt-card:hover {
  border-color: var(--accent);
  background: #1a2433;
}
.prompt-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.detail-actions { margin-bottom: 8px; }
button.btn-back {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
button.btn-back:hover { border-color: var(--accent); color: var(--accent); }
.pd-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
}
.pd-excerpt { max-height: none; }
.prompt-detail .plinks { margin-top: 10px; }
.prompt-card .ptitle {
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 4px;
  color: var(--text);
}
.prompt-card .pmeta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.prompt-card .pexcerpt {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #c5d0e0;
  white-space: pre-wrap;
  word-break: break-word;
}
.prompt-card .plinks {
  margin-top: 5px;
  font-size: 0.72rem;
  color: var(--ok);
}
.prompt-card a { color: var(--accent); }
#graph.dimmed { opacity: 0.35; pointer-events: none; }

.preasons {
  margin-top: 5px;
  font-size: 0.72rem;
  color: #9db0c9;
  line-height: 1.35;
}
button.link-chip {
  display: inline;
  background: transparent;
  color: var(--ok);
  border: 1px solid #3a5a4a;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0 2px;
}
button.link-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.banner {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid var(--panel-border);
}
.banner.ok {
  background: rgba(86, 182, 194, 0.12);
  border-color: rgba(86, 182, 194, 0.45);
  color: var(--text);
}
.banner.err {
  background: rgba(224, 108, 117, 0.15);
  border-color: rgba(224, 108, 117, 0.5);
  color: #f0c0c4;
}
button.stat-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: var(--accent-hot);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
button.stat-link:hover { color: #ffd090; }
.prompt-card .via {
  color: var(--muted);
  font-size: 0.75rem;
}
.prompt-list h3 {
  position: sticky;
  top: 0;
  background: var(--panel);
  padding: 4px 0;
  z-index: 1;
}

.ptags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 6px;
}
.ptag {
  display: inline-block;
  font-size: 0.68rem;
  line-height: 1.3;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.ptag.t-topic { color: #e5c07b; border-color: #6a5a30; }
.ptag.t-model { color: #c678dd; border-color: #5a3a6a; }
.ptag.t-kind { color: #61afef; border-color: #3a5a7a; }
.ptag.t-platform { color: #56b6c2; border-color: #2a5a60; }
.ptag.t-date, .ptag.t-channel, .ptag.t-bucket, .ptag.t-published {
  color: #98c379; border-color: #3a5a3a;
}
.plinks.same-source { color: #e5c07b; }
button.link-chip.same {
  border-color: #6a5a30;
  color: #e5c07b;
}

/* 0.3.5 methodology library hub */
.hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 6px 2px;
}
.hub-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
}
.hub-stat strong { color: var(--text); font-weight: 700; }
.hub-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hub-hint {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 4px 0 8px;
  line-height: 1.4;
}
.hub-sec {
  margin: 0 0 10px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.hub-sec > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-hot);
  user-select: none;
}
.hub-sec > summary::-webkit-details-marker { display: none; }
.hub-sec > summary::before {
  content: "▸";
  color: var(--muted);
  font-size: 0.75rem;
  width: 12px;
}
.hub-sec[open] > summary::before { content: "▾"; }
.hub-sec-title { flex: 1; }
.hub-sec-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 1px 8px;
}
.hub-list {
  list-style: none;
  margin: 0;
  padding: 0 6px 8px;
  max-height: 280px;
  overflow: auto;
}
.hub-sec.hub-Principle .hub-list { max-height: 360px; }
.hub-sec.hub-Document .hub-list { max-height: 220px; }
.hub-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 8px;
  margin-bottom: 3px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--input-bg);
}
.hub-item:hover { border-color: var(--accent); }
.hub-item .hub-dot { margin-top: 5px; }
.hub-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.hub-sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}
.node-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}
.node-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
  flex: 1 1 100%;
}
.type-badge, .pid-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
}
.pid-badge {
  background: rgba(97, 175, 239, 0.15);
  border-color: #3a6a9a;
  color: #61afef;
}
.nb-group {
  margin: 6px 0;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 0 0 4px;
}
.nb-group > summary {
  cursor: pointer;
  padding: 6px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.nb-group > summary::-webkit-details-marker { display: none; }
.nb-group ul { margin: 0; padding: 0 6px; list-style: none; }

/* 0.3.6 fine content tags */
.ptag {
  cursor: pointer;
  font-family: inherit;
}
.ptag:hover { filter: brightness(1.15); }
.ptag.active {
  background: rgba(91, 159, 212, 0.22);
  box-shadow: 0 0 0 1px var(--accent);
}
.ptag .tn {
  margin-left: 4px;
  opacity: 0.65;
  font-size: 0.62rem;
}
.ptag.t-scene { color: #e06c75; border-color: #6a3a40; }
.ptag.t-combat { color: #f0a05a; border-color: #6a4a30; }
.ptag.t-dialogue { color: #61afef; border-color: #3a5a7a; }
.ptag.t-mood { color: #c678dd; border-color: #5a3a6a; }
.ptag.t-genre { color: #e5c07b; border-color: #6a5a30; }
.ptag.t-env { color: #98c379; border-color: #3a5a3a; }
.ptag.t-fx { color: #56b6c2; border-color: #2a5a60; }
.ptag.t-camera { color: #abb2bf; border-color: #4a5566; }

.tag-browser {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.tag-browser-head {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.tag-browser-head strong { color: var(--accent-hot); }
.tag-browser-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.tag-browser-type {
  flex: 0 0 36px;
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 3px;
}
.tag-browser .ptags { flex: 1; margin: 0; }
.btn-clear-tag { padding: 2px 8px; font-size: 0.72rem; margin-left: 6px; }


/* Type filter chips in legend */
button.legend-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 999px;
  font: inherit;
}
button.legend-toggle:hover {
  border-color: var(--panel-border);
  color: var(--text);
  filter: none;
}
button.legend-toggle.legend-off {
  opacity: 0.38;
  text-decoration: line-through;
}
.legend-count {
  margin-left: 4px;
  font-size: 0.72rem;
  color: #8b9bb4;
  font-variant-numeric: tabular-nums;
}
button.legend-toggle .dot { flex-shrink: 0; }

/* ---------- 0.3.9 ---------- */
.legend-break { flex-basis: 100%; height: 0; }
.legend-opt { font-size: 11px; color: #abb2bf; display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; cursor: pointer; user-select: none; }
.legend-opt input { accent-color: #f0a05a; margin: 0; }
#family-filter { background: #1a2130; color: #e7ecf3; border: 1px solid #3a4a60; border-radius: 6px; padding: 5px 8px; font-size: 12px; max-width: 220px; }
#family-filter:focus { outline: none; border-color: #61afef; }
.stat-hid { color: #8b9bb4; font-size: 11px; margin-left: 2px; }
.stat-ver { color: #61afef; font-size: 11px; }
.qflags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.qflag { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid #4a5566; color: #abb2bf; background: #1a2130; }
.qflag.warn { border-color: #7a4a30; color: #f0a05a; background: #2a1d14; }
.fit { font-size: 11px; padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.fit.fit-fit { color: #98c379; border: 1px solid #3a5a3a; background: #1a2a1a; }
.fit.fit-partial { color: #e5c07b; border: 1px solid #6a5a30; background: #2a2414; }
.conf { color: #8b9bb4; font-size: 11px; }
.pfit { margin: 3px 0 2px; }
.ptag .role { font-size: 9.5px; margin-left: 3px; padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,0.08); color: #e7ecf3; }
.ptag.role-primary { font-weight: 600; box-shadow: inset 0 0 0 1px currentColor; }
.ptag.broad { opacity: 0.6; }
button.link-chip .lc-conf { font-size: 9.5px; margin-left: 4px; color: #8b9bb4; }
.plinks .hint { color: #6b7a90; font-size: 10.5px; }
button.fam-chip { background: #16202e; color: #56b6c2; border: 1px solid #2a5a60; border-radius: 999px; padding: 1px 8px; font-size: 11px; cursor: pointer; margin: 1px 2px 1px 0; }
button.fam-chip:hover { filter: brightness(1.2); }
.ptitle .weak { font-size: 10px; color: #e06c75; border: 1px solid #6a3a40; border-radius: 4px; padding: 0 4px; margin-left: 4px; font-weight: 400; }
button.ghost.mini { padding: 1px 8px; font-size: 11px; }

.search-wrap { min-width: 360px; }
.search-wrap button { white-space: nowrap; flex: none; }
#search { min-width: 160px; }

/* 0.4.0 维度过滤（媒介/画风、设备美学）+ 新标签配色 */
.facet-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.facet-filters:empty { display: none; }
.facet-select { background: #1a2130; color: #e7ecf3; border: 1px solid #3a4a60; border-radius: 6px; padding: 4px 8px; font-size: 12px; max-width: 200px; }
.facet-select:focus { outline: none; border-color: #61afef; }
.ptag.t-style { border-color: #6a4a8a; color: #d2a8ff; background: #221a30; }
.ptag.t-device { border-color: #3a6a6a; color: #7fd6c8; background: #152826; }

/* ---------- 0.5.0 Codex 辩证入库 ---------- */
.origin-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; font-size: 11px; line-height: 16px; border: 1px solid; vertical-align: middle; white-space: nowrap; }
.origin-badge.mini { font-size: 10px; padding: 0 5px; line-height: 14px; margin-left: 5px; }
.origin-badge.o-graph { color: #61afef; border-color: #61afef66; background: #61afef14; }
.origin-badge.o-codex { color: #c3a6ff; border-color: #c3a6ff66; background: #c3a6ff14; }
.origin-badge.o-both { color: #8fdc9a; border-color: #8fdc9a77; background: linear-gradient(90deg, #61afef1f, #c3a6ff1f); }
.contested-chip { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px; font-size: 10px; line-height: 14px; color: #ffb86c; border: 1px dashed #ffb86c99; vertical-align: middle; }
.banner.contested { background: #3a2a14; border: 1px dashed #f2a33a; color: #f5d6a8; }
.banner.rejected { background: #26292f; border: 1px solid #5c6370; color: #c5cad3; }
.user-quote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid #8b9bb4; color: #e7ecf3; font-size: 12.5px; background: #1b1f26; }
.reconcile { margin: 8px 0 10px; padding: 8px 10px; border-radius: 8px; background: #191d24; border: 1px solid #2c3442; }
.reconcile.rc-conflict { border-left: 4px solid #ff5c5c; }
.reconcile.rc-tension { border-left: 4px solid #f2a33a; }
.rc-head { font-weight: 600; color: #e7ecf3; margin-bottom: 4px; }
.rc-kind { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; margin-right: 4px; }
.rc-conflict .rc-kind { background: #ff5c5c26; color: #ff8a8a; }
.rc-tension .rc-kind { background: #f2a33a26; color: #f5c27a; }
.rc-pair { margin: 4px 0 6px; font-size: 12.5px; }
.rc-x { color: #8b9bb4; margin: 0 4px; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.rc-table th, .rc-table td { border-top: 1px solid #2c3442; padding: 4px 5px; vertical-align: top; text-align: left; color: #c9d1dc; word-break: break-word; }
.rc-table th { color: #8b9bb4; font-weight: 500; }
.rc-table td:first-child, .rc-table th:first-child { width: 58px; color: #8b9bb4; }
.rc-pref { margin-top: 6px; font-size: 12.5px; color: #dfe6ef; }
.rc-items { margin-top: 4px; font-size: 11px; color: #8b9bb4; }
a.nlink { color: #8fc7ff; text-decoration: none; border-bottom: 1px dotted #8fc7ff66; }
a.nlink:hover { color: #fff; }
.v-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: #aab6c6; }
ul.plain { list-style: none; padding-left: 0; margin: 4px 0; }
ul.plain li { padding: 4px 0; border-bottom: 1px solid #222a35; font-size: 12.5px; }
.cs-text { color: #c9d1dc; margin-top: 2px; }
.rel-chip { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 10.5px; }
.rel-chip.rc-eq { background: #8fdc9a22; color: #8fdc9a; }
.rel-chip.rc-part { background: #e5c07b22; color: #e5c07b; }
.edge-key { gap: 4px; }
.edge-swatch { display: inline-block; width: 22px; height: 0; border-top: 2px dashed; vertical-align: middle; margin-right: 3px; }
.edge-swatch.conflict { border-color: #ff5c5c; border-top-width: 3px; }
.edge-swatch.tension { border-color: #f2a33a; }
/* 0.5.1：打斗跨族联动 + 置信度论证 */
.edge-swatch.inf-req { border-color: #3fbf9f; border-top-style: solid; }
.edge-swatch.inf-con { border-color: #b98cf0; }
.edge-swatch.inf-sup { border-color: #8fcf5a; border-top-style: dotted; }
.conf-arg { margin: 8px 0 10px; padding: 8px 10px; border: 1px solid #3b4a5e; border-radius: 6px; background: #141c26; }
.conf-head { font-weight: 600; font-size: 12px; color: #9fc3ff; margin-bottom: 4px; }
.conf-short { font-size: 12.5px; line-height: 1.55; }
.conf-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12px; }
.conf-table th, .conf-table td { border-bottom: 1px solid #263243; padding: 2px 4px; text-align: left; }
.conf-table th { color: #8a9bb0; font-weight: 500; }
.conf-doc { margin-top: 6px; font-size: 12px; }
.conf-more summary { cursor: pointer; font-size: 12px; color: #8a9bb0; margin-top: 6px; }
.influence-sec .inf-item { margin: 4px 0 8px; font-size: 12.5px; }
.inf-rel { display: inline-block; padding: 0 6px; border-radius: 9px; font-size: 11px; border: 1px solid; }
.inf-requires .inf-rel { color: #3fbf9f; border-color: #3fbf9f; }
.inf-constrains .inf-rel { color: #b98cf0; border-color: #b98cf0; }
.inf-supports .inf-rel { color: #8fcf5a; border-color: #8fcf5a; }
.inf-tension .inf-rel { color: #f2a33a; border-color: #f2a33a; }
.inf-note { margin: 2px 0 0 4px; line-height: 1.5; }
.inf-cond { margin: 2px 0 0 4px; font-size: 11px; color: #8a9bb0; }
.cond-chip { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 8px; background: #22303f; color: #b8c7d9; }
/* 0.5.1.1：原则面板显示用户原话 */
.user-quote-box { margin: 8px 0; padding: 8px 10px; border-left: 3px solid #9fc3ff; background: #141c26; border-radius: 4px; }
.user-quote-box .user-quote { margin: 4px 0; font-size: 13px; line-height: 1.6; }
.user-quote-box .uq-follow { font-size: 12px; color: #b8c7d9; }

/* ---------- 0.6.0 文章 → 原理/方法论 ---------- */
.origin-badge.o-article { color: #e5c07b; border-color: #e5c07b77; background: #e5c07b14; }
.origin-badge.o-article-plus { color: #e5c07b; border-color: #e5c07b55; background: transparent; border-style: dashed; }
.article-node { margin: 6px 0 4px; }
.article-node .art-form { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #ffffff08; border-radius: 4px; padding: 2px 6px; }
.article-support { margin-top: 8px; }
.article-support .art-doc { border-left: 2px solid #e5c07b55; margin: 8px 0 10px; padding-left: 8px; }
.article-support .art-doc-head { font-size: 12.5px; margin-bottom: 4px; }
.article-support .art-jump { color: #e5c07b; }
.article-support .art-claim { margin: 6px 0 10px; }
.article-support .art-quote { margin: 0 0 3px; padding: 4px 8px; border-left: 3px solid #e5c07b88; background: #e5c07b0d; font-size: 12px; line-height: 1.5; color: #d7d7d7; white-space: pre-wrap; }
.article-support .art-stmt { font-size: 12.5px; line-height: 1.5; }
.article-support .art-meta { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vf-chip { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 8px; border: 1px solid #ffffff22; color: #aab; line-height: 15px; }
.vf-chip.vf-ok { color: #8fdc9a; border-color: #8fdc9a66; }
.vf-chip.vf-tight { color: #e5c07b; border-color: #e5c07b66; }
.article-support .art-orig { font-size: 11.5px; color: #999; margin-top: 2px; }
.article-distilled li { margin: 3px 0; }
