:root {
  --paper: #f2eee4;
  --paper-deep: #e9e2d3;
  --paper-light: #faf8f1;
  --ink: #18201d;
  --ink-soft: #4f5953;
  --line: #c9c1b1;
  --line-dark: #918979;
  --vermilion: #c8422d;
  --vermilion-dark: #9d2f20;
  --moss: #365a4a;
  --ochre: #a97b2f;
  --slate: #5f696e;
  --shadow: 0 24px 70px rgba(49, 42, 29, 0.12);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(200, 66, 45, 0.06), transparent 32rem),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(24, 32, 29, 0.035) calc(100% - 1px)) 0 0 / 84px 100%,
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(200, 66, 45, 0.3);
  outline-offset: 3px;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.23;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-seal {
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper-light);
  background: var(--vermilion);
  border: 1px solid var(--vermilion-dark);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0.15em;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.header-meta,
.version-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
}

.status-dot,
.version-chip > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c805f;
  box-shadow: 0 0 0 4px rgba(60, 128, 95, 0.1);
}

.header-divider {
  width: 1px;
  height: 17px;
  margin: 0 6px;
  background: var(--line);
}

.text-button,
.back-button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

a.text-button {
  color: var(--ink-soft);
  text-decoration: none;
}

.text-button:hover,
.back-button:hover {
  color: var(--vermilion);
}

main {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
}

.search-view {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(56px, 7vw, 128px);
  align-items: center;
  padding: 72px 4vw 96px;
  position: relative;
}

.search-view::before {
  content: "COI";
  position: absolute;
  top: 28px;
  right: -1vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(24, 32, 29, 0.06);
  font-family: Georgia, serif;
  font-size: clamp(150px, 18vw, 290px);
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.hero-copy,
.search-stage {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-bottom: 30px;
}

.eyebrow {
  display: flex;
  gap: 23px;
  margin: 0 0 34px;
  color: var(--vermilion);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow span + span {
  color: var(--ink-soft);
  position: relative;
}

.eyebrow span + span::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 1px;
  left: -15px;
  top: 50%;
  background: var(--line-dark);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 4.8vw, 78px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.title-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-copy h1 em {
  color: var(--vermilion);
  font-style: normal;
  position: relative;
}

#heroTitle em.title-line {
  font-size: 0.78em;
  letter-spacing: -0.04em;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 7px;
  opacity: 0.28;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M1 6 C45 1 102 8 199 2' fill='none' stroke='%23c8422d' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-lead {
  max-width: 520px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.95;
}

.hero-rule {
  max-width: 360px;
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--line-dark);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.hero-rule i {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.search-stage {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(190px, 0.43fr);
  align-items: end;
}

.search-card {
  min-height: 570px;
  padding: 40px 44px 34px;
  background: rgba(250, 248, 241, 0.96);
  border: 1px solid rgba(145, 137, 121, 0.55);
  box-shadow: var(--shadow);
  position: relative;
}

.search-card::before,
.search-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.search-card::before {
  inset: 7px;
  border: 1px solid rgba(145, 137, 121, 0.18);
}

.search-card::after {
  width: 44px;
  height: 9px;
  top: -5px;
  left: 52px;
  background: rgba(173, 153, 112, 0.42);
  transform: rotate(-1.5deg);
}

.card-kicker,
.panel-heading,
.dialog-header,
.results-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-kicker {
  position: relative;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.demo-tag {
  padding: 4px 8px;
  color: var(--vermilion-dark);
  background: rgba(200, 66, 45, 0.07);
  border: 1px solid rgba(200, 66, 45, 0.22);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.mode-button {
  padding: 12px 8px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  transition: 160ms ease;
}

.mode-button.is-active {
  color: var(--ink);
  border-bottom-color: var(--vermilion);
  font-weight: 700;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.field-label-spaced {
  margin-top: 21px;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.field-shell input {
  width: 100%;
  height: 56px;
  padding: 0 56px 0 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 17px;
  transition: 160ms ease;
}

.field-shell input:hover {
  border-color: var(--line-dark);
}

.field-shell input:focus {
  border-color: var(--vermilion);
  background: #fffdf7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 66, 45, 0.08);
}

.field-mark {
  position: absolute;
  right: 0;
  width: 46px;
  height: 56px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--line-dark);
  font-family: var(--serif);
  font-size: 12px;
}

.field-help {
  margin: 12px 0 4px;
  color: var(--ink-soft);
  font-size: 11px;
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--vermilion-dark);
  font-size: 12px;
}

.primary-button {
  width: 100%;
  height: 58px;
  margin-top: 4px;
  padding: 0 18px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: 180ms ease;
}

.primary-button:hover {
  background: var(--vermilion-dark);
  border-color: var(--vermilion-dark);
}

.button-arrow {
  font-size: 21px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.primary-button:hover .button-arrow {
  transform: translate(2px, -2px);
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.primary-button.is-loading .button-arrow {
  display: none;
}

.primary-button.is-loading .button-loader {
  display: block;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 21px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-note p {
  margin: 0;
}

.privacy-note > span {
  color: var(--moss);
}

.method-card {
  margin-bottom: 28px;
  min-height: 446px;
  padding: 28px 24px 24px;
  color: #ece8de;
  background: #26312d;
  border-top: 4px solid var(--vermilion);
  box-shadow: 18px 18px 40px rgba(36, 43, 39, 0.14);
}

.aside-title {
  margin: 0 0 26px;
  color: #fffdf5;
  font-family: var(--serif);
  font-size: 14px;
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.method-list li > span {
  color: #d56c59;
  font-family: Georgia, serif;
  font-size: 10px;
}

.method-list div {
  display: grid;
  gap: 5px;
}

.method-list strong {
  font-family: var(--serif);
  font-size: 13px;
}

.method-list small {
  color: rgba(236, 232, 222, 0.6);
  font-size: 10px;
  line-height: 1.55;
}

.dataset-slip {
  margin-top: 24px;
  padding: 16px;
  color: var(--ink);
  background: #d6c9ad;
  transform: rotate(1.2deg);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.13);
}

.dataset-slip > span {
  color: var(--vermilion-dark);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.dataset-slip p {
  margin: 5px 0 1px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}

.dataset-slip small {
  color: #5b5548;
  font-size: 9px;
}

.is-hidden {
  display: none !important;
}

/* Results */
.results-view {
  padding: 34px 0 70px;
  animation: rise 500ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.results-topline {
  margin-bottom: 28px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.back-button span {
  font-size: 17px;
}

.version-chip {
  padding: 7px 11px;
  background: rgba(250, 248, 241, 0.55);
  border: 1px solid var(--line);
}

.author-dossier {
  min-height: 188px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  background: var(--ink);
  color: var(--paper-light);
  border-top: 5px solid var(--vermilion);
  box-shadow: 0 20px 48px rgba(29, 35, 32, 0.13);
}

.author-index {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.4);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.author-identity {
  padding: 30px 38px;
}

.section-label {
  margin: 0 0 7px;
  color: var(--vermilion);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-name-row h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.verified-mark {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.author-affiliation {
  margin: 7px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.author-affiliation-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-bottom: 14px;
}
.author-affiliation-row .author-affiliation { margin-bottom: 0; }
.affiliation-feedback-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: #eadff0;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.07);
  text-decoration: none;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.affiliation-feedback-button:hover {
  color: #25122c;
  background: #d6b85e;
  border-color: #d6b85e;
}
.affiliation-feedback-button span { font-size: 11px; }

.author-affiliation i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-list span {
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.author-folio {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.author-folio > div {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.author-folio > div:first-child {
  border-left: 0;
}

.author-folio span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.author-folio strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.demo-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
  padding: 13px 15px;
  border: 1px solid rgba(169, 123, 47, 0.35);
  background: rgba(231, 215, 172, 0.35);
  color: #655638;
  font-size: 12px;
}

.reviewer-coi-panel {
  margin: 20px 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: rgba(250, 248, 241, 0.72);
}

.reviewer-coi-panel.has-matches {
  border-color: rgba(200, 66, 45, 0.48);
  box-shadow: inset 4px 0 0 var(--vermilion);
}

.reviewer-coi-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.reviewer-coi-heading h2 {
  margin: 0;
  font: 600 23px var(--serif);
}

.reviewer-coi-heading > strong {
  color: var(--vermilion);
  font: 500 34px var(--serif);
}

.reviewer-match-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.reviewer-empty {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink-soft);
}

.reviewer-empty strong {
  color: var(--moss);
  font-family: var(--serif);
}

.reviewer-empty span {
  font-size: 10px;
}

.reviewer-match {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 15px 16px;
  background: rgba(200, 66, 45, 0.045);
  border: 1px solid rgba(200, 66, 45, 0.22);
}

.reviewer-match h3 {
  display: inline;
  margin: 0 0 0 8px;
  font: 600 15px var(--serif);
}

.reviewer-match p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.reviewer-flag,
.reviewer-row-badge {
  display: inline-block;
  padding: 2px 5px;
  color: var(--vermilion-dark);
  border: 1px solid rgba(200, 66, 45, 0.35);
  font: 700 8px var(--sans);
  letter-spacing: 0.08em;
}

.reviewer-row-badge {
  margin-left: 6px;
  vertical-align: 2px;
}

.reviewer-year {
  min-width: 95px;
  display: grid;
  text-align: right;
}

.reviewer-year small,
.reviewer-year span {
  color: var(--ink-soft);
  font-size: 8px;
}

.reviewer-year strong {
  color: var(--vermilion-dark);
  font: 600 17px var(--serif);
}

.reviewer-match button {
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.reviewer-match button:hover {
  color: white;
  background: var(--ink);
}

.coauthor-table tr.is-reviewer {
  background: rgba(200, 66, 45, 0.055);
}

.demo-banner p {
  margin: 0;
}

.demo-banner-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ochre);
  color: var(--ochre);
  font-family: var(--serif);
}

.banner-close {
  border: 0;
  background: transparent;
  color: #7a6a48;
  cursor: pointer;
  font-size: 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: rgba(250, 248, 241, 0.48);
}

.metric-card {
  min-height: 118px;
  padding: 20px 22px 17px;
  border-left: 1px solid var(--line);
  position: relative;
}

.metric-card:first-child {
  border-left: 0;
}

.metric-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}

.metric-card .metric-note {
  display: block;
  margin-top: 6px;
  color: var(--line-dark);
  font-size: 9px;
}

.metric-card.is-alert strong {
  color: var(--vermilion);
}

.metric-mark {
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--line);
  font-family: Georgia, serif;
  font-size: 10px;
}

.analysis-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(260px, 0.3fr) minmax(660px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.distribution-card,
.coauthor-panel {
  background: rgba(250, 248, 241, 0.74);
  border: 1px solid var(--line);
}

.distribution-card {
  padding: 26px 24px 22px;
  position: sticky;
  top: 20px;
}

.panel-heading {
  align-items: flex-end;
  gap: 16px;
}

.panel-heading h2,
.dialog-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.panel-heading > span {
  padding-bottom: 3px;
  color: var(--line-dark);
  font-size: 9px;
}

.distribution-chart {
  margin-top: 28px;
  display: grid;
  gap: 17px;
}

.distribution-row {
  display: grid;
  grid-template-columns: 54px 1fr 22px;
  align-items: center;
  gap: 10px;
}

.distribution-label,
.distribution-count {
  font-size: 10px;
}

.distribution-count {
  color: var(--ink-soft);
  text-align: right;
  font-family: Georgia, serif;
}

.distribution-track {
  height: 8px;
  background: var(--paper-deep);
  overflow: hidden;
}

.distribution-fill {
  display: block;
  width: var(--bar-width);
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  animation: grow 650ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.distribution-row:first-child .distribution-fill {
  background: var(--vermilion);
}

.chart-note {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.coauthor-panel {
  min-width: 0;
  padding: 26px 28px 22px;
}

.panel-heading-wide {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.export-button {
  height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: 150ms ease;
}

.export-button:hover {
  color: var(--paper-light);
  background: var(--ink);
  border-color: var(--ink);
}

.filter-deck {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 9px;
  margin-top: 18px;
}

.table-search,
.compact-select {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.table-search > span {
  margin-left: 12px;
  color: var(--line-dark);
  font-size: 18px;
}

.table-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 9px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.compact-select > span {
  padding-left: 11px;
  color: var(--line-dark);
  font-size: 9px;
  white-space: nowrap;
}

.compact-select select {
  height: 40px;
  padding: 0 28px 0 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}

.relation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.relation-filter {
  padding: 6px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
}

.relation-filter:hover {
  border-color: var(--line);
}

.relation-filter.is-active {
  color: var(--paper-light);
  background: var(--ink);
  border-color: var(--ink);
}

.table-summary {
  margin: 20px 0 8px;
  display: flex;
  justify-content: space-between;
  color: var(--line-dark);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.coauthor-table-wrap {
  overflow-x: auto;
}

.coauthor-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.coauthor-table th {
  padding: 11px 10px;
  color: var(--line-dark);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.coauthor-table th:nth-child(1) { width: 19%; }
.coauthor-table th:nth-child(2) { width: 15%; }
.coauthor-table th:nth-child(3) { width: 12%; }
.coauthor-table th:nth-child(4) { width: 25%; }
.coauthor-table th:nth-child(5) { width: 22%; }
.coauthor-table th:nth-child(6) { width: 7%; }

.coauthor-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(201, 193, 177, 0.72);
  vertical-align: middle;
  font-size: 11px;
}

.coauthor-table tr {
  transition: background 130ms ease;
  animation: row-in 350ms ease both;
  animation-delay: calc(var(--row-index) * 26ms);
}

.coauthor-table tbody tr:hover {
  background: rgba(233, 226, 211, 0.55);
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-monogram {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  font-family: Georgia, var(--serif);
  font-size: 9px;
}

.person-cell strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.person-cell small,
.year-cell small {
  display: block;
  color: var(--line-dark);
  font-size: 8px;
}

.year-cell strong {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 500;
}

.paper-count {
  font-family: Georgia, serif;
  font-size: 13px;
}

.institution-cell {
  color: var(--ink-soft);
  line-height: 1.4;
}

.relation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid;
  font-size: 9px;
  white-space: nowrap;
}

.relation-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.relation-badge.same { color: var(--moss); background: rgba(54, 90, 74, 0.06); border-color: rgba(54, 90, 74, 0.3); }
.relation-badge.cross { color: var(--vermilion-dark); background: rgba(200, 66, 45, 0.05); border-color: rgba(200, 66, 45, 0.28); }
.relation-badge.changed { color: #84631f; background: rgba(169, 123, 47, 0.06); border-color: rgba(169, 123, 47, 0.3); }
.relation-badge.unknown { color: var(--slate); background: rgba(95, 105, 110, 0.06); border-color: rgba(95, 105, 110, 0.28); }

.confidence-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.row-open {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: 140ms ease;
}

.row-open:hover {
  color: var(--paper-light);
  background: var(--vermilion);
  border-color: var(--vermilion);
  transform: translateX(2px);
}

.empty-state {
  padding: 58px 20px;
  text-align: center;
  color: var(--ink-soft);
}

.empty-state > span {
  display: block;
  color: var(--line);
  font-size: 36px;
}

.empty-state strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  color: var(--ink);
}

.empty-state p {
  margin: 5px 0 0;
  font-size: 11px;
}

.report-footer {
  margin-top: 22px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
}

.report-footer div {
  display: grid;
  gap: 2px;
}

.report-footer span {
  color: var(--line-dark);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.report-footer strong {
  font-family: Georgia, var(--serif);
  font-size: 10px;
  font-weight: 500;
}

.report-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: right;
}

/* Dialogs */
dialog {
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  max-width: none;
  max-height: none;
}

dialog::backdrop {
  background: rgba(18, 25, 22, 0.68);
  backdrop-filter: blur(4px);
  animation: fade 180ms ease both;
}

.candidate-dialog,
.about-dialog {
  width: min(820px, calc(100% - 32px));
}

.dialog-shell {
  max-height: calc(100vh - 40px);
  padding: 34px 36px 30px;
  overflow: auto;
  background: var(--paper-light);
  border-top: 5px solid var(--vermilion);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.3);
  animation: dialog-in 260ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.dialog-header {
  align-items: flex-start;
}

.dialog-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.dialog-close:hover {
  color: var(--paper-light);
  background: var(--ink);
}

.dialog-intro {
  max-width: 650px;
  margin: 14px 0 25px;
  color: var(--ink-soft);
  font-size: 12px;
}

.candidate-list {
  display: grid;
  gap: 12px;
}

.candidate-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fffdf8;
  transition: 160ms ease;
}

.candidate-card:hover {
  border-color: var(--line-dark);
  box-shadow: 7px 7px 0 var(--paper-deep);
  transform: translate(-2px, -2px);
}

.candidate-topline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.candidate-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
}

.match-score {
  padding: 2px 7px;
  color: var(--moss);
  border: 1px solid rgba(54, 90, 74, 0.35);
  font-family: Georgia, serif;
  font-size: 9px;
}

.candidate-meta {
  margin: 5px 0 11px;
  color: var(--ink-soft);
  font-size: 11px;
}

.candidate-reason {
  margin: 0 0 10px;
  color: var(--vermilion-dark);
  font-size: 10px;
}

.candidate-papers {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-family: Georgia, var(--serif);
  font-size: 10px;
}

.candidate-select {
  align-self: center;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}

.candidate-select:hover {
  background: var(--vermilion-dark);
  border-color: var(--vermilion-dark);
}

.dialog-footnote {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.dialog-footnote span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  place-items: center;
  border: 1px solid var(--line-dark);
}

.evidence-dialog {
  width: min(780px, calc(100% - 28px));
  margin-right: 0;
  margin-left: auto;
  height: 100vh;
}

.evidence-shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--paper-light);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.25);
  animation: drawer-in 290ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.evidence-rail {
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.55);
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.evidence-rail > span:first-child {
  writing-mode: vertical-rl;
}

.evidence-rail i {
  width: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.17);
}

.evidence-content {
  padding: 35px 38px 42px;
  overflow: auto;
}

.evidence-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.evidence-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
  border: 1px solid var(--line);
}

.evidence-summary > div {
  padding: 15px;
  border-left: 1px solid var(--line);
}

.evidence-summary > div:first-child {
  border-left: 0;
}

.evidence-summary span {
  display: block;
  color: var(--line-dark);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.evidence-summary strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 13px;
}

.classification-note {
  padding: 15px 17px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: var(--paper-deep);
  border-left: 3px solid var(--ochre);
}

.classification-note > span {
  font-size: 16px;
}

.classification-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
}

.classification-note p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.evidence-section-title {
  margin: 27px 0 13px;
  font-family: var(--serif);
  font-size: 15px;
}

.paper-evidence-list {
  display: grid;
  gap: 10px;
}

.paper-evidence {
  padding: 16px 17px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.paper-evidence-top {
  display: flex;
  gap: 10px;
  color: var(--vermilion-dark);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
}

.paper-evidence h4 {
  margin: 7px 0 9px;
  font-family: Georgia, var(--serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.paper-evidence dl {
  margin: 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.paper-evidence dt {
  color: var(--line-dark);
}

.paper-evidence dd {
  margin: 0;
}

.source-footnote {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.about-copy > p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 24px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-grid > div {
  padding: 20px;
  background: var(--paper-light);
}

.about-grid span {
  display: block;
  color: var(--vermilion);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.about-grid strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
}

.about-caution {
  padding: 14px 16px;
  border-left: 3px solid var(--vermilion);
  background: var(--paper-deep);
  font-size: 12px !important;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 30px);
  padding: 11px 17px;
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: 200ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 100;
  padding: 15px;
  background: #fff;
  border: 2px solid var(--vermilion);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(0.985); } }
@keyframes drawer-in { from { transform: translateX(38px); opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1180px) {
  .search-view {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero-copy {
    max-width: 760px;
    padding-top: 20px;
  }

  .search-stage {
    max-width: 850px;
  }

  .author-dossier {
    grid-template-columns: 74px 1fr;
  }

  .author-folio {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .author-folio > div {
    padding: 19px 24px;
  }

  .analysis-layout {
    grid-template-columns: 1fr;
  }

  .distribution-card {
    position: static;
  }

  .distribution-chart {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-header,
  main {
    width: min(100% - 30px, 720px);
  }

  .header-meta > span:not(.status-dot) {
    display: none;
  }

  .header-divider {
    display: none;
  }

  .search-view {
    padding: 54px 0 70px;
  }

  .search-stage {
    grid-template-columns: 1fr;
  }

  .method-card {
    margin: 0 18px;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 20px;
  }

  .aside-title {
    grid-column: 1 / -1;
    margin-bottom: -6px;
  }

  .dataset-slip {
    margin: 0;
    align-self: center;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card {
    border-top: 1px solid var(--line);
  }

  .metric-card:nth-child(odd) {
    border-left: 0;
  }

  .metric-card:first-child,
  .metric-card:nth-child(2) {
    border-top: 0;
  }

  .metric-card:last-child {
    grid-column: 1 / -1;
  }

  .report-footer {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .report-footer p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 620px) {
  body {
    background-size: 60px 100%;
  }

  .site-header {
    min-height: 78px;
  }

  .brand-seal {
    width: 36px;
    height: 41px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 47px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .search-card {
    min-height: auto;
    padding: 32px 23px 27px;
  }

  .method-card {
    margin: 0 8px;
    padding: 26px 20px;
    grid-template-columns: 1fr;
  }

  .author-dossier {
    grid-template-columns: 46px 1fr;
  }

  .author-identity {
    padding: 25px 22px;
  }

  .author-name-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .author-affiliation {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .author-affiliation i {
    display: none;
  }

  .author-folio {
    grid-template-columns: 1fr 1fr;
  }

  .author-folio > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .demo-banner {
    align-items: start;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card {
    padding: 16px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .distribution-card,
  .coauthor-panel {
    padding: 21px 17px;
  }

  .reviewer-coi-panel {
    padding: 20px 17px;
  }

  .reviewer-empty,
  .reviewer-match {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .reviewer-empty {
    flex-direction: column;
    gap: 4px;
  }

  .reviewer-year {
    text-align: left;
  }

  .reviewer-match button {
    width: 100%;
  }

  .distribution-chart {
    grid-template-columns: 1fr;
  }

  .panel-heading-wide {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-deck {
    grid-template-columns: 1fr 1fr;
  }

  .table-search {
    grid-column: 1 / -1;
  }

  .table-summary span:last-child {
    display: none;
  }

  .candidate-dialog,
  .about-dialog,
  .evidence-dialog {
    width: calc(100% - 14px);
  }

  .dialog-shell {
    padding: 27px 20px 24px;
  }

  .dialog-header h2 {
    font-size: 20px;
  }

  .candidate-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .candidate-select {
    width: 100%;
  }

  .evidence-shell {
    grid-template-columns: 34px 1fr;
  }

  .evidence-content {
    padding: 28px 18px 35px;
  }

  .evidence-summary {
    grid-template-columns: 1fr;
  }

  .evidence-summary > div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .evidence-summary > div:first-child {
    border-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tsinghua purple academic archive theme */
:root {
  --paper: #f6f3f8;
  --paper-deep: #e8e0ec;
  --paper-light: #fffdfd;
  --ink: #211326;
  --ink-soft: #695b70;
  --line: #d7ccdc;
  --line-dark: #9e8aa7;
  --vermilion: #660874;
  --vermilion-dark: #4a0754;
  --moss: #3f675b;
  --ochre: #a37819;
  --slate: #685f70;
  --shadow: 0 28px 80px rgba(63, 24, 72, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

body {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(102, 8, 116, 0.045) calc(100% - 1px)) 0 0 / 84px 100%,
    var(--paper);
}
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline-color: rgba(102, 8, 116, 0.34); }
.paper-grain { opacity: 0.11; mix-blend-mode: color-burn; }

.site-header {
  width: 100%;
  min-height: 86px;
  padding-inline: max(28px, calc((100vw - 1384px) / 2));
  color: #fff;
  background: #660874;
  border-bottom: 4px solid #b893c1;
}
.brand-seal {
  width: 46px;
  height: 50px;
  color: #660874;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  font: 800 10px/1.05 var(--sans);
  letter-spacing: 0.06em;
}
.brand-copy strong { font-size: 18px; letter-spacing: 0.02em; }
.brand-copy small, .header-meta, a.text-button { color: rgba(255, 255, 255, 0.74); }
.status-dot { background: #d6b85e; box-shadow: 0 0 0 4px rgba(214, 184, 94, 0.15); }
.header-divider { background: rgba(255, 255, 255, 0.24); }
.text-button:hover { color: #fff; }

.search-view { min-height: calc(100vh - 86px); }
.search-view::before { color: rgba(102, 8, 116, 0.025); -webkit-text-stroke-color: rgba(102, 8, 116, 0.09); }
.hero-copy {
  padding: clamp(40px, 3.7vw, 54px);
  color: #fff;
  background: #660874;
  box-shadow: 18px 18px 0 #ddd0e2;
}
.hero-copy .eyebrow { margin-bottom: 27px; color: #e6d1ea; }
.hero-copy .eyebrow span + span { color: rgba(255, 255, 255, 0.62); }
.hero-copy h1 { color: #fff; }
.hero-copy h1 { font-size: clamp(42px, 4vw, 60px); letter-spacing: -0.045em; }
.hero-copy h1 em { color: #d9b8e0; font-size: .74em; }
.hero-copy .hero-lead { color: rgba(255, 255, 255, 0.78); }
.search-card { background: rgba(255, 253, 255, 0.96); border-color: var(--line); border-top: 5px solid #660874; box-shadow: var(--shadow); }
.search-card { min-height: 660px; }
.search-card::before, .search-card::after { border-color: rgba(102, 8, 116, 0.6); }
.demo-tag { color: #660874; background: #eee5f1; border-color: #d8c4de; }
.mode-switch { background: #ece5ef; }
.conference-label { margin-top: 26px; }
.conference-select-shell { position: relative; display: flex; align-items: center; }
.conference-select-shell select {
  width: 100%;
  height: 52px;
  padding: 0 70px 0 15px;
  appearance: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 16px;
  cursor: pointer;
}
.conference-select-shell select:focus { border-color: #660874; outline: 0; box-shadow: 0 0 0 3px rgba(102, 8, 116, .08); }
.conference-select-shell select:disabled { cursor: wait; opacity: .6; }
.conference-select-shell span {
  position: absolute;
  right: 0;
  width: 58px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #660874;
  border-left: 1px solid var(--line);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  pointer-events: none;
}
.search-card .mode-switch { margin-top: 24px; margin-bottom: 25px; }
.results-context { display: flex; align-items: center; gap: 18px; }
.results-context > strong { color: #660874; font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.mode-button.is-active { color: #fff; background: #660874; }
.field-shell:focus-within { border-color: #660874; box-shadow: 0 0 0 3px rgba(102, 8, 116, 0.08); }
.field-mark { color: #660874; font-size: 8px; font-weight: 800; letter-spacing: 0.04em; }
.primary-button { background: #660874; border-color: #660874; }
.primary-button:hover { background: #4a0754; }
.method-card { background: #25122c; border-top: 5px solid #b893c1; box-shadow: 16px 16px 0 rgba(102, 8, 116, 0.11); }
.method-list > li > span { color: #d6b85e; }
.dataset-slip { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); }

.author-dossier { background: #25122c; border-top-color: #b893c1; }
.author-index, .section-label, .eyebrow, .reviewer-coi-panel .section-label { color: #7a2487; }
.author-dossier .section-label { color: #d9b8e0; }
.verified-mark { color: #eee1f1; border-color: rgba(255, 255, 255, 0.3); }
.demo-banner { background: #eee7f1; border-color: #d5c5da; }
.demo-banner-icon { color: #660874; border-color: #9f77aa; }
.reviewer-coi-panel { background: #fffafd; border-color: #cbb4d2; border-left-color: #660874; }
.reviewer-coi-panel.has-matches { box-shadow: 0 20px 50px rgba(102, 8, 116, 0.08); }
.reviewer-match { background: #fbf7fc; border-color: #ded1e2; }
.reviewer-flag, .reviewer-row-badge { color: #660874; border-color: #b894c2; background: #f1e7f3; }
.reviewer-year strong { color: #660874; }
.reviewer-match button { color: #660874; border-color: #b894c2; }
.reviewer-match-method { display: inline-block; margin-top: 7px; padding: 3px 7px; color: #8b2442; border: 1px solid #d4aebb; background: #faeef2; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.reviewer-institution-method { display: inline-block; margin: 7px 0 0 5px; padding: 3px 7px; color: #4f2261; border: 1px solid #cbb4d3; background: #f5edf7; font-size: 8px; font-weight: 900; letter-spacing: .05em; }
.metric-card { background: rgba(255, 253, 255, 0.88); }
.metric-card.is-alert { background: #efe4f2; border-top: 3px solid #660874; }
.metric-card.is-alert strong { color: #660874; }
.distribution-card, .coauthor-panel { background: rgba(255, 253, 255, 0.9); }
.distribution-fill { background: #660874; }
.relation-filter.is-active { color: #fff; background: #660874; border-color: #660874; }
.coauthor-table tr.is-reviewer { background: rgba(102, 8, 116, 0.055); }
.export-button:hover, .row-open:hover { color: #fff; background: #660874; border-color: #660874; }
.report-footer { border-top: 4px solid #660874; }
.toast { background: #25122c; }
dialog::backdrop { background: rgba(32, 12, 38, 0.62); }
.evidence-rail { background: #660874; }

.site-footer {
  width: min(1384px, calc(100% - 56px));
  margin: 0 auto;
  padding: 24px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #74677a;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer strong { color: #660874; font: 700 12px var(--serif); letter-spacing: 0.04em; text-transform: none; }

.feedback-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 1px;
  min-width: 138px;
  padding: 12px 16px 11px;
  text-align: left;
  color: #fff;
  background: #25122c;
  border: 1px solid #c9a7d1;
  border-left: 4px solid #d6b85e;
  box-shadow: 7px 7px 0 rgba(102, 8, 116, .16);
  cursor: pointer;
}
.feedback-trigger span { color: #d9b8e0; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.feedback-trigger strong { font: 600 13px var(--serif); }
.feedback-trigger:hover { background: #660874; transform: translate(-1px, -1px); }
.developer-dialog { width: min(680px, calc(100% - 28px)); }
.developer-shell { padding: 30px 32px 32px; border-top-color: #660874; }
.developer-copy { margin-top: 22px; }
.developer-group { margin: 0 0 20px; color: #25122c; font: 600 25px/1.2 var(--serif); letter-spacing: -.015em; }
.developer-list { display: grid; margin: 0; border-top: 1px solid var(--line); font-style: normal; }
.developer-person { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.developer-person > span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #660874; font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.developer-person strong { color: #25122c; font: 600 17px/1.2 var(--serif); }
.developer-person p { margin: 6px 0 0; color: #74677a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.feedback-dialog { width: min(620px, calc(100% - 28px)); padding: 0; border: 1px solid #bca5c3; background: #fffafd; box-shadow: 18px 18px 0 rgba(54, 22, 62, .24); }
.feedback-form { padding: 28px 30px 30px; border-top: 6px solid #660874; }
.feedback-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.feedback-dialog-head h2 { margin: 3px 0 0; font: 600 29px var(--serif); }
.feedback-intro { margin: 12px 0 15px; max-width: 500px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.feedback-context { margin-bottom: 18px; padding: 9px 11px; color: #660874; background: #f1e8f3; border-left: 3px solid #660874; font-size: 10px; font-weight: 800; }
.feedback-form > label, .feedback-label-row label { display: block; margin: 14px 0 6px; color: var(--ink-soft); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.feedback-form label span { font-weight: 500; text-transform: none; }
.feedback-form select, .feedback-form textarea, .feedback-form input { width: 100%; padding: 12px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; font: 400 12px/1.5 var(--sans); }
.feedback-form select { height: 44px; padding-block: 0; }
.feedback-form textarea { resize: vertical; min-height: 138px; }
.feedback-form select:focus, .feedback-form textarea:focus, .feedback-form input:focus { outline: 0; border-color: #660874; box-shadow: 0 0 0 3px rgba(102, 8, 116, .08); }
.feedback-label-row { display: flex; align-items: end; justify-content: space-between; }
.feedback-label-row span { color: var(--ink-soft); font-size: 9px; }
.feedback-privacy { margin: 10px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }
.feedback-message { min-height: 18px; margin: 10px 0 0; color: #660874; font-size: 10px; font-weight: 700; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.feedback-actions .primary-button { width: auto; min-width: 155px; padding: 11px 16px; }
.quiet-feedback-button { padding: 10px 16px; color: #660874; background: transparent; border: 1px solid #bca5c3; cursor: pointer; font-size: 10px; font-weight: 800; }
.quiet-feedback-button:hover { color: #fff; background: #660874; }

@media (max-width: 1040px) { .hero-copy { box-shadow: 12px 12px 0 #ddd0e2; } }
@media (max-width: 640px) {
  .site-header { padding-inline: 16px; }
  .header-meta { gap: 7px; font-size: 9px; white-space: nowrap; }
  .header-meta .status-dot { display: none; }
  .brand-copy small { display: none; }
  .hero-copy { padding: 34px 26px; box-shadow: 8px 8px 0 #ddd0e2; }
  .site-footer { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 5px; }
  .feedback-trigger { right: 14px; bottom: 14px; min-width: 112px; padding: 10px 12px; }
  .feedback-form { padding: 22px 20px 24px; }
  .developer-shell { padding: 24px 20px 26px; }
  .developer-group { font-size: 21px; }
  .developer-person { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
}

/* openCOI vertical landing composition */
.search-view {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 22px 4vw 60px;
}
.search-view::before {
  content: "openCOI";
  top: 8px;
  right: 1vw;
  font-size: clamp(90px, 14vw, 210px);
  color: rgba(102, 8, 116, .018);
  -webkit-text-stroke-color: rgba(102, 8, 116, .07);
}
.hero-copy {
  width: min(1050px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 2vw, 26px) clamp(30px, 3vw, 40px);
  color: #fff;
  background: #660874;
  box-shadow: 5px 5px 0 #ddd0e2;
  overflow: hidden;
}
.hero-copy .eyebrow { margin-bottom: 8px; color: #e6d1ea; font-size: 8px; }
.hero-copy .eyebrow span + span { color: rgba(255,255,255,.62); }
.hero-copy h1 {
  max-width: 800px;
  color: #fff;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -.045em;
  white-space: normal;
}
.hero-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.23);
}
.hero-narrative p {
  margin: 0;
  color: rgba(255,255,255,.79);
  font: 400 clamp(12px, .85vw, 13.5px)/1.42 var(--serif);
}
.hero-narrative strong { color: #fff; }
.search-stage { display: block; width: min(820px, 100%); margin: 0 auto; }
.search-card {
  width: 100%;
  min-height: auto;
  padding: 36px 42px 30px;
  background: rgba(255,253,255,.98);
  border-top: 5px solid #660874;
  box-shadow: 14px 18px 0 rgba(102,8,116,.10), 0 20px 60px rgba(37,18,44,.09);
}
.search-card .conference-label { margin-top: 22px; }
.search-card .mode-switch { margin: 20px 0 24px; }
.search-card .card-kicker > span:first-child { line-height: 1.4; }
#nameInputPanel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#nameInputPanel .field-label { margin-top: 0; }
.field-group { min-width: 0; }
.method-card {
  width: min(1050px, 100%);
  min-height: auto;
  margin: 2px auto 0;
  padding: 18px 30px 0;
  color: #ece8f0;
  background: #25122c;
  border-top: 4px solid #b893c1;
  box-shadow: 6px 6px 0 rgba(102,8,116,.11);
}
.method-card .aside-title {
  margin: 0 0 10px;
  color: #fff;
  font: 600 18px var(--serif);
}
.method-card .method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.method-card .method-list li {
  min-height: 84px;
  grid-template-columns: 27px 1fr;
  gap: 9px;
  padding: 13px 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  border-left: 1px solid rgba(255,255,255,.12);
}
.method-card .method-list li:first-child { padding-left: 0; border-left: 0; }
.method-card .method-list li > span { color: #d6b85e; font-size: 9px; }
.method-card .method-list strong { color: #fff; font-size: 13px; }
.method-card .method-list small { color: rgba(236,232,240,.65); font-size: 9.5px; line-height: 1.4; }
.method-card .dataset-slip {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  column-gap: 18px;
  align-items: center;
  margin: 3px -30px 0;
  padding: 10px 30px;
  color: #25122c;
  background: #d6b85e;
  box-shadow: none;
  transform: none;
}
.method-card .dataset-slip > span { color: #660874; }
.method-card .dataset-slip p { margin: 0; font-size: 11px; }
.method-card .dataset-slip small { color: #5b4c2a; font-size: 8.5px; }
.dataset-copy { min-width: 0; }
.data-volume { display: grid; grid-template-columns: auto auto; gap: 18px; padding-left: 18px; border-left: 1px solid rgba(37,18,44,.22); }
.data-volume > div { display: grid; gap: 1px; }
.data-volume strong { color: #25122c; font: 600 15px var(--serif); white-space: nowrap; }
.data-volume small { color: #660874 !important; font-size: 7px !important; font-weight: 900; letter-spacing: .09em; }

@media (max-width: 860px) {
  .search-view { padding: 20px 0 52px; gap: 16px; }
  .hero-copy { padding: 22px 20px; box-shadow: 4px 4px 0 #ddd0e2; }
  .hero-narrative { grid-template-columns: 1fr; gap: 16px; }
  .search-stage { width: calc(100% - 20px); }
  .method-card { margin-inline: auto; display: block; padding-inline: 18px; }
  .method-card .method-list { grid-template-columns: 1fr; }
  .method-card .method-list li,
  .method-card .method-list li:first-child { min-height: auto; padding: 12px 0; border-left: 0; }
  .method-card .dataset-slip { margin-inline: -18px; padding-inline: 18px; }
  .method-card .dataset-slip { grid-template-columns: 1fr auto; }
  .method-card .dataset-slip > span { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hero-copy h1 { font-size: 32px; }
  .hero-narrative p { font-size: 12px; }
  .search-card { padding: 30px 22px 26px; }
  .search-card .card-kicker { align-items: flex-start; gap: 12px; }
  .search-card .card-kicker > span:first-child { font-size: 9px; letter-spacing: .1em; }
  #nameInputPanel { grid-template-columns: 1fr; gap: 20px; }
  .method-card .dataset-slip { grid-template-columns: 1fr; gap: 7px; }
  .method-card .dataset-slip > span { grid-column: auto; margin-bottom: 1px; }
  .data-volume { padding: 12px 0 0; border-top: 1px solid rgba(37,18,44,.22); border-left: 0; }
}
