/* finesse · register=product · A=limestone+evergreen · B=serif+mono
 * C=relationship-workspace+inspector · D=SVG+bounded-force+native-pointer
 * E=archival-paper+research-canvas · SOUL=6 SPECTACLE=3 DENSITY=8 */
:root {
  color-scheme: light;
  --limestone: #f5f5ee;
  --surface: #fbfbf6;
  --ink: #182b22;
  --secondary: #53635a;
  --muted: #627066;
  --line: #dce1d6;
  --green: #24543f;
  --soft: #e8eee1;
  --acid: #d8eb9d;
  --plot: #13291f;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", SimSun, Georgia, serif;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  background: var(--limestone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, select, input { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #61875d; outline-offset: 4px; }
h1,h2,h3,h4,p { margin: 0; }
.shell { width: min(1320px, calc(100% - 88px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-inner { min-height: 73px; display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; font-size: 17px; font-weight: 700; white-space: nowrap; letter-spacing: .015em; }
.brand img { width: 39px; height: 39px; }
.brand small { display: block; margin-top: 4px; font: 9px/1 var(--mono); letter-spacing: .13em; color: var(--muted); }
nav { display: flex; gap: 31px; align-self: stretch; }
nav a { display: grid; place-items: center; position: relative; padding: 0 2px; color: var(--secondary); font-size: 13px; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--green); }
nav a[aria-current] { font-weight: 700; }
nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--green); }
.search-trigger { justify-self: end; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--limestone); padding: 8px 10px; border-radius: 8px; min-height: 38px; }
.search-trigger span { font-size: 20px; line-height: 1; }
kbd { font: 10px var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; }
.intro { padding: 43px 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font: 10px/1.5 var(--mono); color: var(--green); letter-spacing: .14em; }
.eyebrow > span { width: 7px; height: 7px; background: #527652; border-radius: 50%; }
h1 { font: 700 clamp(36px, 4.15vw, 60px)/1.16 var(--serif); margin: 9px 0 12px; letter-spacing: -.045em; }
.intro p { color: var(--secondary); font-size: 14px; line-height: 1.8; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface); }
.metric { min-width: 0; padding: 16px 20px 15px; }
.metric:not(:first-child) { border-left: 1px solid var(--line); }
.metric:hover { background: var(--soft); }
.metric-head { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--secondary); }
.metric-head span { font: 10px var(--mono); color: var(--muted); }
.metric strong { display: block; font: 500 33px/1.1 var(--mono); letter-spacing: -.08em; margin: 9px 0 6px; }
.metric small { font-size: 11px; color: var(--muted); }
.workspace { margin-top: 26px; padding: 19px 19px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-head h2 { font-size: 22px; letter-spacing: -.025em; margin-top: 3px; }
.section-tools { display: flex; gap: 8px; align-items: center; }
select, .secondary, .primary-btn, .filter input { border: 1px solid var(--line); border-radius: 7px; min-height: 38px; background: var(--surface); padding: 0 11px; }
select { padding-right: 19px; max-width: 100%; }
.secondary { color: var(--green); white-space: nowrap; }
.secondary span { margin-left: 5px; font-size: 16px; }
.secondary:hover, .search-trigger:hover { background: var(--soft); }
.work-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(265px, 27%); gap: 12px; }
.work-grid { --graph-height: 453px; }
.graph { height: var(--graph-height); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; overflow: hidden; border-radius: 10px; color: #e8f0e1; background-color: var(--plot); background-image: radial-gradient(#76917b39 .75px,transparent .75px); background-size: 17px 17px; }
.graph-top, .graph-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; position: relative; z-index: 1; }
.graph-top { font-size: 11px; color: #d9e4d5; }
.graph-top > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.graph-top i { height: 6px; width: 6px; border-radius: 50%; background: var(--acid); }
.graph-coord { font: 10px var(--mono); letter-spacing: .1em; color: #b0c1ae; }
.graph-scroll { min-width: 0; overflow: hidden; }
.graph-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.rings circle { fill: none; stroke: #b0cbb1; stroke-opacity: .18; stroke-dasharray: 3 5; stroke-width: .9; }
.edge { fill: none; stroke: #94ad97; stroke-width: 1; opacity: .53; }
.edge.primary { stroke: #d9eea1; stroke-width: 1.5; opacity: .86; }
.edge.leaf.topic { stroke: #d7bc7d; opacity: .74; stroke-dasharray: 4 3; }
.edge.leaf.person { stroke: #9cb6d9; opacity: .64; stroke-dasharray: 4 3; }
.gnode { --node: #9bc69d; outline: none; }
.gnode.school { --node: #d8eb9d; }
.gnode.topic { --node: #e8c584; }
.gnode.person { --node: #b5cbea; }
.gnode .hit { fill: transparent; }
.gnode .halo { fill: var(--node); fill-opacity: .08; stroke: var(--node); stroke-opacity: .35; }
.gnode .core { fill: var(--node); }
.gnode text { fill: #e4eee0; font-size: 12.5px; font-weight: 500; paint-order: stroke; stroke: var(--plot); stroke-width: 3px; stroke-linejoin: round; }
.gnode text.root-code { fill: #172b21; stroke: none; font: 700 12px var(--mono); letter-spacing: .07em; }
.gnode.school text:not(.root-code) { font-size: 17px; font-weight: 700; }
.gnode.selected .halo, .gnode:hover .halo, .gnode:focus-visible .halo { stroke-opacity: 1; stroke-width: 2; fill-opacity: .2; }
.gnode:focus-visible text, .gnode:hover text { fill: var(--node); }
.gnode:focus-visible text.root-code,.gnode:hover text.root-code { fill: var(--plot); }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 10px; color: #d9e4d5; }
.legend span { display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); }
.legend span:nth-child(2) i { background: #9bc69d; }
.legend span:nth-child(3) i { background: #e8c584; }
.legend span:nth-child(4) i { background: #b5cbea; }
.zoom { display: inline-flex; border: 1px solid #76917b65; border-radius: 6px; overflow: hidden; background: var(--plot); }
.zoom button { background: transparent; color: #e8f0e1; border: 0; min-width: 30px; height: 29px; font: 12px var(--mono); }
.zoom button + button { border-left: 1px solid #76917b65; }
.zoom button:nth-child(2) { min-width: 50px; }
.zoom button:hover { background: #2f4b3a; }
.inspector { border: 1px solid var(--line); border-radius: 10px; min-width: 0; display: grid; grid-template-rows: auto minmax(0,1fr); height: var(--graph-height); }
.inspector-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.inspector-top a { color: var(--green); font-size: 11px; }
.tiny { font: 9px var(--mono); letter-spacing: .09em; color: var(--muted); }
.inspector-scroll { overflow: auto; scrollbar-width: thin; }
.inspect-title, .inspect-section { padding: 13px 14px; }
.inspect-section { border-top: 1px solid var(--line); }
.tag { display: inline-flex; border-radius: 4px; background: var(--soft); color: var(--green); font-size: 10px; padding: 3px 7px; }
.inspect-title h3 { margin: 6px 0 3px; font-size: 22px; line-height: 1.35; }
.inspect-title p, .muted { color: var(--muted); font-size: 12px; line-height: 1.65; }
.inspect-section dl { margin: 0; display: grid; gap: 8px; font-size: 11px; }
.inspect-section dl div, .inspect-section h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
.inspect-section h4 { margin-bottom: 5px; font-size: 12px; }
.inspect-section h4 span { font: 11px var(--mono); color: var(--green); }
.coverage { display: grid; grid-template-columns: 1fr 1fr; }
.coverage > div + div { border-left: 1px solid var(--line); padding-left: 13px; }
.coverage b { display: block; font: 500 22px var(--mono); }
.coverage small { color: var(--muted); font-size: 11px; }
.source-link, .plain-link { color: var(--green); font-size: 12px; font-weight: 600; }
.source-link:hover, .plain-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.inspect-section .source-link { display: inline-block; margin: 4px 12px 0 0; }
.inspect-list a:not(.source-link) { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 2px; min-height: 35px; font-size: 12px; }
.inspect-list a:not(.source-link):hover { background: var(--soft); }
.inspect-list small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.relation { border-bottom: 1px solid var(--line); padding-bottom: 7px; margin-bottom: 7px; }
.workspace-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--muted); font-size: 11px; }
.workspace-foot a { color: var(--green); font-weight: 650; white-space: nowrap; }
.directory { margin-top: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 16px; }
.directory summary { padding: 14px 0; font-weight: 650; }
.directory summary small { margin-left: 10px; color: var(--muted); font-weight: 400; }
.unit-tree { margin: 0 0 18px; padding-left: 20px; columns: 3 210px; }
.unit-tree li { padding: 3px 0; break-inside: avoid; font-size: 12px; }
.unit-tree a span { color: var(--green); }
.unit-tree a:hover { color: var(--green); text-decoration: underline; }
.featured-head { margin-top: 29px; }
.school-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.school-card { display: flex; align-items: center; gap: 10px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.school-card:hover, .topic-card:hover { border-color: #9cb49b; }
.school-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: none; background: var(--soft); border-radius: 6px; color: var(--green); font: 700 11px var(--mono); }
.school-card-name { min-width: 0; flex: 1; }
.school-card strong, .school-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-card small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.arrow { color: var(--green); }
.filter { display: flex; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.filter input { flex: 1; min-width: 80px; }
.primary-btn { background: var(--green); color: var(--surface); border-color: var(--green); padding: 0 17px; }
.primary-btn:hover { background: #193d2e; }
.result-count { margin: 18px 0 10px; color: var(--secondary); font-size: 12px; }
.result-count strong { color: var(--ink); font-size: 16px; font-family: var(--mono); }
.result-count > span { margin-left: 8px; }
.table-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: auto; background: var(--surface); }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 11px 16px; line-height: 1.5; }
th { color: var(--secondary); background: var(--soft); white-space: nowrap; }
td { border-top: 1px solid var(--line); }
td:first-child { font-weight: 650; }
td a:hover { text-decoration: underline; text-underline-offset: 3px; }
td a span { color: var(--green); }
tbody tr:hover { background: #f1f4eb; }
.mono { font-family: var(--mono); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; padding: 17px; color: var(--muted); }
.pager a { justify-self: start; color: var(--green); font-weight: 650; padding: 7px; }
.pager a:last-child { justify-self: end; }
.coverage-notes { margin: 18px 0; padding: 17px; background: var(--surface); border-radius: 10px; border: 1px solid var(--line); }
.coverage-notes h2 { font-size: 17px; }
.coverage-notes p { margin-top: 7px; color: var(--secondary); line-height: 1.8; }
.topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.topic-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.topic-card h2 { font-size: 21px; margin-top: 8px; }
.topic-card p { font-size: 12px; color: var(--muted); margin: 6px 0 9px; }
.topic-card a { display: block; margin: 6px 0; line-height: 1.6; }
.message { padding: 23px; color: var(--secondary); border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); }
#app > .message:first-child { margin-top: 28px; }
.footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 34px; padding: 17px 0 20px; font: 10px/1.7 var(--mono); letter-spacing: .07em; color: var(--muted); }
.dot { display: inline-block; width: 4px; height: 4px; background: var(--green); border-radius: 50%; margin: 0 8px 2px; }
dialog { width: min(560px,calc(100% - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 15px 65px #13291f42; }
dialog::backdrop { background: #13291f70; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.dialog-head button { border: none; background: transparent; font-size: 25px; line-height: 1; width: 36px; height: 36px; }
dialog input { width: 100%; background: var(--limestone); border: 1px solid var(--line); border-radius: 6px; padding: 11px; }
#global-results { margin-top: 10px; max-height: 45vh; overflow: auto; }
#global-results a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 7px; border-bottom: 1px solid var(--line); }
#global-results a:hover { background: var(--soft); }
#global-results a small { color: var(--green); text-align: right; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 48px); }
  .school-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-grid { --graph-height: 415px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { grid-template-columns: 1fr auto; gap: 3px 12px; padding-top: 8px; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 6px; min-height: 44px; }
  .top-inner > button { grid-row: 1; grid-column: 2; min-height: 44px; }
  .intro { padding: 28px 0 19px; }
  .intro p { font-size: 13px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 11px; }
  .metric strong { font-size: 26px; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .workspace { padding: 12px 10px 0; margin-top: 16px; }
  .section-head { align-items: center; }
  .section-head h2 { font-size: 18px; }
  .section-tools { gap: 5px; }
  .section-tools select, .section-tools button { min-height: 44px; font-size: 11px; padding: 0 5px; }
  .section-tools select { max-width: 124px; }
  .work-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .work-grid { --graph-height: 304px; }
  .graph-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #587461 var(--plot); }
  .graph-top, .graph-foot { padding: 7px; }
  .graph-svg { min-width: 565px; }
  .zoom button { height: 44px; min-width: 33px; }
  .legend { gap: 4px 6px; }
  .inspector { height: auto; }
  .inspector-scroll { max-height: 420px; }
  .inspect-list a:not(.source-link) { min-height: 44px; }
  .workspace-foot { align-items: start; line-height: 1.5; }
  .school-card { padding: 8px; gap: 6px; }
  .school-mark { width: 35px; height: 35px; font-size: 10px; }
  .school-card strong { font-size: 12px; }
  .filter { flex-wrap: wrap; }
  .filter input { flex-basis: 100%; }
  .filter select { flex: 1; min-width: 0; }
  .filter input, .filter select, .primary-btn { min-height: 44px; }
  th,td { padding: 9px 10px; font-size: 12px; }
  td { min-width: 70px; }
  td:first-child { min-width: 130px; }
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 365px) {
  .section-tools .secondary span, .graph-coord, kbd { display: none; }
  .topic-grid { grid-template-columns: minmax(0,1fr); }
}

.profile-breadcrumb { display: flex; gap: 9px; align-items: center; margin: 26px 0 12px; font-size: 12px; color: var(--muted); }
.profile-breadcrumb a, .academic-card h4 a { color: var(--green); }
.profile-breadcrumb a:hover, .academic-card h4 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-hero { position: relative; display: flex; gap: 20px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--surface); }
.profile-hero h1 { margin: 5px 0 7px; font-size: clamp(33px,5vw,50px); }
.profile-meta { color: var(--secondary); font-size: 13px; line-height: 1.65; }
.profile-summary { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.profile-sources { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 9px; }
.profile-atlas { margin-left: auto; flex: none; padding-top: 3px; }
.profile-jumps { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 22px; }
.profile-jumps button { border: 1px solid var(--line); padding: 9px 12px; background: var(--surface); border-radius: 7px; color: var(--green); font-size: 12px; min-height: 40px; }
.profile-jumps button:hover { background: var(--soft); }
.profile-index { margin-top: 20px; }
.profile-index h2 { margin-bottom: 9px; font-size: 18px; }
.academic-section { margin: 0 0 17px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); scroll-margin-top: 15px; }
.academic-section h2 { margin-bottom: 13px; font-size: 20px; letter-spacing: -.025em; }
.academic-section h2::before { content: ""; display: inline-block; width: 4px; height: .85em; border-radius: 2px; background: #698862; margin-right: 9px; vertical-align: -.02em; }
.academic-note { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.cv-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.cv-block h3, .academic-subheading { font-size: 14px; margin: 0 0 7px; }
.academic-subheading { display: flex; align-items: baseline; gap: 8px; margin-top: 15px; }
.academic-subheading span, .academic-group h4 span { color: var(--muted); font: 11px var(--mono); }
.academic-groups, .academic-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.cv-block .academic-cards { grid-template-columns: 1fr; }
.academic-group { padding: 10px; background: #f1f4ea; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.academic-group:nth-child(2) { background: #ebf2ec; }
.academic-group:nth-child(3) { background: #f5f1e5; }
.academic-group > h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; margin: 2px 1px 8px; font-size: 13px; }
.academic-group .academic-card + .academic-card { margin-top: 7px; }
.academic-card { padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
.academic-card-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 6px; }
.academic-card h4 { font-size: 13px; }
.academic-card p, .academic-card small { color: var(--secondary); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.academic-card .relation-direction { font-weight: 650; color: var(--ink); }
.academic-evidence { margin-top: 5px; color: var(--green); font-size: 11px; }
.academic-evidence summary { padding: 4px 0; }
.academic-evidence > div { padding: 6px 7px; border-left: 2px solid #b8c7ae; background: #f1f4eb; }
.academic-evidence p { font-size: 11px; }
.academic-destination { border-left: 2px solid #7f9a79; padding: 6px 7px; margin-top: 6px; background: #eef3e9; }
.academic-destination > b { color: var(--green); font-size: 10px; }
.lineage-map { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,.65fr) minmax(0,1fr); align-items: center; gap: 14px; padding: 15px; border-radius: 9px; background: var(--plot); color: #e7efe3; }
.lineage-branch { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 6px; min-width: 0; position: relative; }
.lineage-branch b { width: 100%; color: #c0d2ba; text-align: center; font-size: 11px; }
.lineage-branch a, .lineage-empty { padding: 5px 8px; border-radius: 5px; border: 1px solid #547662; font-size: 12px; overflow-wrap: anywhere; }
.lineage-branch a:hover { background: #31543f; }
.lineage-center { position: relative; text-align: center; padding: 9px 5px; border: 1px solid #a9bf78; border-radius: 7px; background: #203d2d; }
.lineage-center::before, .lineage-center::after { content: ""; position: absolute; width: 15px; height: 1px; background: #a9bf78; top: 50%; }
.lineage-center::before { right: 100%; }
.lineage-center::after { left: 100%; }
.lineage-center span { display: block; font-size: 10px; color: #c0d2ba; }
.lineage-center strong { display: block; font-size: 19px; color: var(--acid); margin-top: 2px; }
@media (max-width: 760px) {
  .profile-hero { flex-wrap: wrap; gap: 10px; padding: 13px; }
  .profile-hero > div { flex: 1; min-width: 0; }
  .profile-atlas { margin-left: 55px; }
  .profile-jumps button { min-height: 44px; }
  .academic-section { padding: 12px; }
  .cv-grid, .academic-groups, .academic-cards { grid-template-columns: 1fr; }
  .lineage-map { grid-template-columns: 1fr; gap: 8px; }
  .lineage-center::before, .lineage-center::after { display: none; }
  .lineage-branch a { display: grid; align-items: center; min-height: 44px; }
  .lineage-branch a span { display: none; }
  .academic-evidence summary { min-height: 32px; }
}

.academic-image { display: inline-grid; place-items: center; position: relative; width: 36px; height: 36px; flex: none; border-radius: 7px; background: var(--soft); color: var(--green); font-weight: 700; overflow: hidden; }
.academic-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; background: var(--surface); }
.academic-image.hero { width: 91px; height: 106px; border-radius: 10px; background: var(--plot); color: var(--acid); font: 700 34px var(--serif); }
.academic-image.entity { width: 86px; height: 34px; border: 1px solid var(--line); background: var(--soft); font-size: 11px; }
.academic-image.entity img { object-fit: contain; object-position: center; padding: 5px; }
.academic-person-head { display: flex; gap: 8px; align-items: center; }
.academic-card .person-card-summary { margin-top: 7px; }
.entity-links { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 7px; }
.academic-card .entity-summary { margin-top: 7px; color: var(--ink); }
@media (max-width: 760px) {
  .academic-image.hero { width: 52px; height: 65px; font-size: 25px; }
  .profile-atlas { margin-left: 62px; }
}

.academic-image img[src="/media/tian-tian.jpg"] { object-position: 71% center; }

.graph-link { display: inline-grid; place-items: center; }
.nation-node rect { fill: #203a2b; stroke: #73977a; stroke-width: .8px; }
.nation-node text,.nation-back text { fill: #e7efe3; font-size: 11.5px; }
.nation-node:hover rect,.nation-node:focus-visible rect { fill: #385641; stroke: var(--acid); }
.nation-back:hover text { fill: var(--acid); }
.national-graph .edge { opacity: .19; }
@media (max-width: 760px) {
  .filter select { flex: 1 0 40%; }
  .section-tools .graph-link { padding-inline: 8px; }
}
.collection-table { margin-top: 12px; }
.academic-card h4 { overflow-wrap: anywhere; }

@media (max-width: 440px) {
  nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 6px; }
  nav a { min-height: 36px; }
}

.cas-person-refs { display: flex; align-items: center; gap: 12px; padding-inline: 16px; }

.knowledge-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.knowledge-filters button{border:1px solid #d8dfd2;border-radius:20px;background:transparent;padding:8px 16px;color:#345743;cursor:pointer}.knowledge-filters button[aria-pressed="true"]{background:#345743;color:white;border-color:#345743}.person-graph-scroll{overflow:auto;max-height:640px;border:1px solid #dde3d8;border-radius:14px;background:#fafbf7}.person-graph{display:block;min-width:760px;width:100%;height:auto}.person-graph a:hover rect{stroke-width:2.5}.person-graph a:hover path{stroke:#64876c;stroke-width:2.5}.graph-evidence-list{margin-top:16px}.graph-evidence-list p{padding:8px 0;border-bottom:1px solid #e3e7df;font-size:14px}

.recent-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0;padding:20px 24px;border:1px solid #cedbc6;border-radius:13px;background:var(--soft)}.recent-entry strong{display:block;margin:7px 0;font-size:19px}.recent-entry small{color:var(--secondary);line-height:1.6}.recent-entry-arrow{font-size:28px;color:var(--green)}.recent-entry:hover{border-color:var(--green)}.updates-date{margin:-12px 0 20px;color:var(--muted);line-height:1.7}.updates-filter{margin-top:24px}.updates-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:32px}.update-card{display:flex;flex-direction:column;gap:14px;min-width:0;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:13px}.update-person{display:flex;align-items:center;gap:13px}.update-person>span:last-child{min-width:0}.update-person h2{font-size:23px;margin:0 0 6px;font-family:var(--serif)}.update-person small{display:block;color:var(--secondary);line-height:1.6}.update-mode{align-self:flex-start;font-size:11px}.update-summary{color:var(--secondary);line-height:1.85;font-size:13px}.update-counts{display:flex;flex-wrap:wrap;gap:7px}.update-counts span{font-size:11px;padding:4px 8px;background:var(--soft);border-radius:5px;color:var(--green)}.update-companies{font-size:12px;color:var(--secondary);line-height:1.7}.update-actions{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:12px}
@media(max-width:1050px){.updates-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.updates-grid{grid-template-columns:1fr}.recent-entry{padding:17px;gap:12px}.recent-entry strong{font-size:17px}.updates-filter select{width:100%}.updates-date{margin-top:-8px;font-size:12px}.update-card{padding:19px}}

.data-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.library-entry{background:#e1ebdd;border-color:#b6cbb1}.file-provenance{margin:22px 0;padding:18px 21px;background:var(--surface);border:1px solid var(--line);border-left:3px solid #829173;border-radius:8px;color:var(--secondary);font-size:13px;line-height:1.8}.file-provenance p{margin:7px 0}.library-bio{color:var(--secondary);font-size:13px;line-height:1.8;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.library-preview{display:grid;gap:8px;color:var(--secondary);font-size:12px;line-height:1.7}.library-preview span{display:block;font-size:10px;color:var(--muted);margin-bottom:2px}.identity-verified{background:#e0ebd9;color:#24543f}.file-record{background:#eeeae0;color:#716346}.file-record-source{display:block;margin-top:12px;color:var(--muted);font-size:11px;line-height:1.65}.library-pager{align-items:center;gap:16px;flex-wrap:wrap}.library-pager>div{display:flex;gap:14px}.library-pager form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.library-pager input{width:85px;padding:9px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.library-switch{display:flex;gap:18px;flex-wrap:wrap;margin:-10px 0 25px;font-size:13px;line-height:1.8}.library-switch span{color:var(--muted)}
@media(max-width:1200px){nav{gap:17px}}
@media(max-width:760px){.data-entry-grid{grid-template-columns:1fr;gap:0}.data-entry-grid .recent-entry{margin:16px 0 0}.data-entry-grid .recent-entry:last-child{margin-bottom:10px}.library-filter select{width:100%}.library-pager{justify-content:center}.library-pager form{justify-content:center}}
