:root {
  --ink: #223c36;
  --muted: #6f7972;
  --green: #245e4e;
  --line: #dfe3d9;
  --cream: #f7f8f2;
  --paper: #fffefa;
  --lime: #d7e6b3;
  --soft: #edf1e5;
  --serif: Georgia, "Times New Roman", serif;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
a {
  color: var(--green);
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #91b859;
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    color 0.15s;
}
button:hover:not(:disabled) {
  filter: brightness(0.96);
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  gap: 44px;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.7px;
}
.brand b {
  font-weight: 400;
  color: #738278;
}
.coverage-link {
  margin-left: auto;
  text-decoration: none;
  font-size: 12px;
}
.coverage-link span {
  margin-left: 9px;
}
.workspace {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  max-width: 1800px;
  margin: auto;
}
.sidebar {
  padding: 33px 24px 24px;
  border-right: 1px solid var(--line);
  min-height: calc(100vh - 78px);
  background: #f1f3eb;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 650;
  color: #778371;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
}
.collections {
  display: grid;
  gap: 7px;
  margin: 20px -8px 31px;
}
.collection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 12px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.collection.active {
  background: var(--green);
  color: white;
}
.collection .count {
  font-size: 10px;
  background: #ffffff18;
  padding: 3px 5px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.collection:not(.active) .count {
  color: #748072;
  background: #e6eade;
}
.field {
  display: block;
  font-size: 11px;
  color: #627160;
  margin-bottom: 19px;
}
.field select,
.year-fields input {
  display: block;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
  font-size: 12px;
  padding: 9px 24px 9px 9px;
  border: 1px solid #d9dfd2;
  background: #fafbf6;
  color: var(--ink);
  border-radius: 5px;
  text-overflow: ellipsis;
}
.year-fields {
  display: flex;
  gap: 8px;
  align-items: center;
}
.year-fields .field {
  min-width: 0;
  flex: 1;
}
.year-fields > span {
  font-size: 12px;
  color: var(--muted);
}
.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin: 17px 0;
}
.check-field input {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
  margin: 0;
}
main {
  padding: 40px 44px 0;
  min-width: 0;
}
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid #d6ddcf;
  border-radius: 7px;
  padding: 0 16px;
  height: 51px;
  gap: 13px;
  box-shadow: 0 2px 4px #223c3603;
}
.search-wrap:focus-within {
  border-color: #829b6d;
  box-shadow: 0 0 0 2px #aec39222;
}
.search-wrap svg {
  width: 19px;
  height: 19px;
  color: #6e856b;
  flex-shrink: 0;
}
.search-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none !important;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}
.search-wrap input::placeholder {
  color: #879080;
}
.search-wrap kbd {
  border: 1px solid #e0e4d8;
  border-radius: 3px;
  font-size: 12px;
  color: #8b9584;
  padding: 2px 7px;
}
.stats {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 18px;
  margin: 23px 0 31px;
}
.stat {
  border-right: 1px solid var(--line);
  padding: 4px 12px 4px 0;
}
.stat:last-child {
  border: 0;
}
.stat-label {
  color: #778170;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 10px;
  color: #829077;
}
.stat:first-child strong {
  color: var(--green);
}
.viewbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.tabs {
  display: flex;
  gap: 26px;
  align-self: stretch;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 0;
  background: none;
  font-size: 12px;
  color: #818a7a;
}
.tab.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 13px;
  font-size: 11px;
  text-decoration: none;
  min-height: 34px;
}
.button.secondary {
  background: var(--paper);
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.file-hint {
  font-size: 9px;
  border-left: 1px solid var(--line);
  padding-left: 8px;
  color: var(--muted);
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.active-filters:not(:empty) {
  padding: 16px 0 0;
}
.filter-chip {
  border: 1px solid #d3ddc6;
  border-radius: 30px;
  background: #eaf0dd;
  padding: 5px 9px;
  font-size: 10px;
  color: #48633b;
}
.filter-chip span {
  margin-left: 7px;
}
.library-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 17px;
  gap: 12px;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.4px;
  font-size: 21px;
  margin: 0;
}
.library-top p {
  font-size: 10px;
  color: #7a8475;
  margin: 6px 0 0;
}
.sort-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #879080;
  white-space: nowrap;
}
.sort-label select {
  border: 0;
  background: transparent;
  color: #4b6045;
  font-size: 11px;
  max-width: 145px;
}
.papers {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.paper {
  display: grid;
  grid-template-columns: 52px 1fr 25px;
  gap: 16px;
  padding: 23px 24px;
  border-bottom: 1px solid #e6e9e0;
  position: relative;
}
.paper:last-child {
  border: 0;
}
.paper:hover {
  background: #f8faf1;
}
.paper-year {
  font-family: var(--serif);
  font-size: 19px;
  color: #718763;
  padding-top: 2px;
}
.paper-year small {
  font-family: ui-sans-serif, sans-serif;
  display: block;
  font-size: 9px;
  letter-spacing: 0.5px;
  margin-top: 7px;
  color: #9ba48f;
}
.paper-title {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.15px;
  color: #243f36;
  overflow-wrap: anywhere;
}
.paper-title:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.paper-meta {
  color: #7c8579;
  font-size: 10px;
  line-height: 1.8;
  margin: 7px 0 8px;
  overflow-wrap: anywhere;
}
.paper-meta .venue {
  color: #526e52;
}
.paper-snippet {
  font-size: 11px;
  line-height: 1.7;
  color: #7d8479;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 11px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  font-size: 9px;
  border: 0;
  border-radius: 3px;
  background: #eef1e6;
  color: #5e7451;
  padding: 4px 7px;
  line-height: 1.4;
}
.tag.warning {
  background: #f7efda;
  color: #9b7835;
}
.tag.exclude {
  background: #f8e9e2;
  color: #966449;
}
.tag.defer {
  background: #f7efda;
  color: #9b7835;
}
.paper-arrow {
  border: 0;
  background: transparent;
  font-size: 18px;
  align-self: start;
  color: #869a78;
  padding: 4px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7c8972;
  padding: 19px 0;
  gap: 8px;
}
.pagination > div {
  display: flex;
  gap: 6px;
}
.pagination button {
  border: 1px solid #d9dfd0;
  border-radius: 4px;
  background: var(--paper);
  padding: 7px 12px;
}
.pagination select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  color: var(--ink);
  padding: 5px;
  font-size: 11px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.empty p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 440px;
  margin: 12px auto 18px;
}
.empty h2 {
  color: var(--ink);
  font-size: 25px;
}
.loader {
  width: 23px;
  height: 23px;
  border: 2px solid #d8e2ca;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 21px 0 23px;
  font-size: 9px;
  line-height: 1.7;
  color: #909985;
  margin-top: 20px;
}
.footer-dot {
  padding: 0 5px;
}
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.chart-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  min-width: 0;
}
.chart-card.wide {
  grid-column: 1/-1;
}
.chart-heading h2 {
  margin: 9px 0;
}
.chart-heading p,
.chart-note,
.method-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.chart-heading p {
  margin: 0 0 25px;
}
.year-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 185px;
  overflow-x: auto;
  padding-top: 22px;
}
.year-column {
  height: 100%;
  min-width: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: stretch;
  border: 0;
  background: none;
  padding: 0;
  color: #697a60;
}
.year-column .bar {
  background: #8fa97a;
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  display: block;
}
.year-column:hover .bar,
.year-column:focus-visible .bar,
.year-column.selected .bar {
  background: #396956;
}
.year-column .bar-count {
  font-size: 10px;
  padding-bottom: 5px;
}
.year-column .bar-label {
  font-size: 10px;
  padding-top: 9px;
  white-space: nowrap;
}
.chart-note {
  margin-bottom: 0;
  margin-top: 18px;
}
.rank-chart {
  display: grid;
  gap: 14px;
}
.rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  min-width: 0;
}
.rank-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-row b {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.rank-track {
  grid-column: 1/-1;
  background: #edf0e5;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
}
.rank-fill {
  display: block;
  height: 100%;
  background: #8ca975;
  border-radius: 3px;
}
.rank-row:hover .rank-fill {
  background: var(--green);
}
.venues {
  grid-template-columns: 1fr 1fr;
  gap: 18px 35px;
}
.method-note {
  margin: 20px 0;
}
.skip {
  position: absolute;
  top: -60px;
  left: 10px;
  z-index: 10;
  background: var(--paper);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 660px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -16px 0 80px #172e3620;
}
dialog::backdrop {
  background: #1c35254a;
  backdrop-filter: blur(2px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.detail-toolbar {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 28px;
  z-index: 1;
}
.detail-toolbar > div {
  display: flex;
  gap: 8px;
}
.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  font-size: 15px;
}
#detail-body {
  padding: 32px;
}
.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 17px;
}
.detail-title {
  font-size: 31px;
  line-height: 1.2;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.65px;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.detail-authors {
  font-size: 12px;
  line-height: 1.9;
  color: #66755f;
  margin-bottom: 15px;
}
.detail-authors button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: #c0cdb5;
  text-underline-offset: 3px;
  font-size: inherit;
  text-align: left;
}
.detail-venue {
  font-size: 12px;
  color: #75816b;
  line-height: 1.8;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 23px 0;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 25px;
}
.detail-section h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 14px;
}
.abstract-text {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.9;
  color: #596751;
  overflow-wrap: anywhere;
}
.review-box {
  background: #f0f3e8;
  border: 1px solid #e1e7d6;
  padding: 18px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.8;
  color: #5d6e53;
}
.review-box p {
  margin: 9px 0 0;
}
.detail-section dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 13px 15px;
  font-size: 11px;
  line-height: 1.7;
}
.detail-section dt {
  color: #8a947f;
}
.detail-section dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-evidence {
  font-size: 11px;
  line-height: 1.9;
  color: #7b8673;
  overflow-wrap: anywhere;
}
.related-item {
  display: block;
  border: 1px solid #e2dfcb;
  background: #faf6e9;
  padding: 12px;
  margin-top: 8px;
  border-radius: 5px;
  text-align: left;
  font-size: 12px;
  width: 100%;
  line-height: 1.6;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 6px;
  box-shadow: 0 6px 30px #18362230;
  padding: 13px 22px;
  font-size: 12px;
  z-index: 10;
  max-width: 90vw;
}
.error {
  color: #925838;
}
@media (min-width: 1600px) {
  main {
    padding-left: 60px;
    padding-right: 60px;
  }
  .paper {
    padding-top: 26px;
    padding-bottom: 26px;
  }
}
@media (max-width: 1150px) {
  main {
    padding: 30px 25px 0;
  }
  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding: 29px 19px;
  }
  .paper {
    padding: 20px 18px;
    grid-template-columns: 42px 1fr 20px;
    gap: 10px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stats {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 20px;
    height: 66px;
  }
  .brand {
    font-size: 20px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .sidebar-heading,
  .collections {
    grid-column: 1/-1;
  }
  .collections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 12px 0 20px;
  }
  .collection {
    flex: 1;
    font-size: 11px;
    padding: 9px 7px;
    gap: 4px;
  }
  .collection .count {
    font-size: 9px;
  }
  .field {
    margin-bottom: 13px;
  }
  .field select {
    padding: 8px;
    margin-top: 5px;
    font-size: 11px;
  }
  .year-fields {
    grid-column: 2;
    grid-row: 3;
  }
  .check-field {
    margin: 4px 0;
    font-size: 10px;
  }
  .sidebar .field:has(#source) {
    grid-column: 2;
    grid-row: 5;
  }
  main {
    padding: 26px 20px 0;
  }
  .stats {
    gap: 7px;
    margin: 20px 0;
  }
  .stat {
    padding-right: 5px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat-label {
    font-size: 9px;
  }
  .search-wrap {
    height: 47px;
    padding: 0 12px;
    gap: 9px;
  }
  .search-wrap input {
    font-size: 11px;
  }
  .search-wrap kbd {
    display: none;
  }
  .library-top {
    align-items: start;
  }
  .library-top h2 {
    font-size: 20px;
  }
  .sort-label {
    font-size: 0;
    gap: 0;
    padding-top: 5px;
  }
  .sort-label select {
    font-size: 10px;
    max-width: 110px;
  }
  .paper {
    grid-template-columns: 1fr 20px;
    gap: 5px;
    padding: 17px;
  }
  .paper-year {
    font-size: 12px;
    grid-column: 1/-1;
    font-family: inherit;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 5px;
  }
  .paper-year small {
    margin: 0;
  }
  .paper-title {
    font-size: 18px;
  }
  .paper-snippet {
    -webkit-line-clamp: 2;
  }
  .paper-meta {
    font-size: 10px;
  }
  .button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .file-hint {
    display: none;
  }
  .tabs {
    gap: 23px;
  }
  .tab {
    font-size: 12px;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .chart-card.wide {
    grid-column: auto;
  }
  .chart-card {
    padding: 19px;
  }
  .venues {
    grid-template-columns: 1fr;
  }
  .year-chart {
    gap: 7px;
  }
  .year-column .bar-label,
  .year-column .bar-count {
    font-size: 9px;
  }
  .pagination {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .pagination button {
    padding: 7px 10px;
  }
  footer {
    display: block;
  }
  footer > span {
    display: block;
  }
  #detail-body {
    padding: 24px;
  }
  .detail-toolbar {
    padding: 15px 24px;
  }
  .detail-title {
    font-size: 27px;
  }
  .detail-section dl {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}
#filter-toggle {
  display: none;
}
@media (max-width: 760px) {
  #filter-toggle {
    display: inline-block;
    margin-left: auto;
    margin-right: 12px;
  }
  .sidebar:not(.expanded) > :not(.sidebar-heading):not(.collections) {
    display: none;
  }
  .sidebar:not(.expanded) .collections {
    margin-bottom: 0;
  }
  .stat strong {
    font-size: 21px;
  }
  .stat:nth-child(2) strong {
    font-size: 18px;
    line-height: 1.75;
  }
  .paper-year small {
    font-size: 10px;
  }
  .paper-meta {
    font-size: 11px;
  }
  .paper-snippet {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat strong,
  .stat:nth-child(2) strong {
    font-size: 26px;
    line-height: 1.5;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat small {
    font-size: 10px;
  }
  .stat {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.network-controls,
.classification-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 18px;
  margin: 6px 0 18px;
}
.network-controls label,
.classification-toolbar label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.network-controls select,
.classification-toolbar select {
  padding: 9px 26px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}
.network-stage {
  position: relative;
  height: 535px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(#a1b09728 0.7px, transparent 0.7px) 0 0 / 18px 18px,
    #fafbf5;
  overflow: hidden;
}
.network-stage canvas {
  display: block;
  touch-action: none;
}
.graph-tools {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 6px;
}
.graph-tools .icon-button {
  background: var(--paper);
}
.graph-direction {
  position: absolute;
  bottom: 13px;
  left: 17px;
  display: flex;
  gap: 16px;
  font-size: 10px;
  pointer-events: none;
}
.graph-direction span:first-child {
  color: #2b7968;
}
.graph-direction span:last-child {
  color: #b88339;
}
.network-tooltip {
  position: absolute;
  max-width: 260px;
  padding: 9px 12px;
  background: var(--ink);
  border-radius: 5px;
  color: white;
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
  box-shadow: 0 4px 20px #203d3622;
}
.network-empty {
  position: absolute;
  top: 40%;
  left: 10%;
  right: 10%;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.network-below {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.network-below select {
  width: 100%;
  text-overflow: ellipsis;
}
.network-below .field {
  margin-bottom: 0;
}
#network-selection h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}
#network-selection p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 12px;
}
#network-selection .button {
  margin-right: 7px;
  margin-top: 6px;
}
.network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 19px;
}
.network-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.network-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.classification-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.classification-card {
  padding: 22px 18px;
}
.classification-card h2 {
  font-size: 25px;
  margin: 12px 0;
}
.classification-card h2 small {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.classification-key {
  display: flex;
  gap: 12px;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 25px;
}
.class-row {
  gap: 5px 9px;
  padding: 5px 0;
}
.class-row small {
  font-size: 9px;
  color: var(--muted);
  grid-column: 1/-1;
}
.class-row.selected {
  background: var(--soft);
  outline: 5px solid var(--soft);
  border-radius: 3px;
}
.class-row .rank-track {
  display: flex;
  height: 7px;
}
.class-reviewed {
  height: 100%;
  background: #54774f;
}
.class-suggested {
  height: 100%;
  background: repeating-linear-gradient(
    125deg,
    #b8c698,
    #b8c698 3px,
    #e1e8d1 3px,
    #e1e8d1 5px
  );
}
.unclassified-button {
  margin-top: 25px;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  width: 100%;
  text-align: left;
}
.class-dimension {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #74816d;
  font-weight: 500;
  margin: 24px 0 12px;
}
.class-evidence {
  font-size: 12px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.class-evidence summary {
  cursor: pointer;
}
.class-evidence summary .tag {
  margin-left: 4px;
}
.class-evidence p {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.citation-list {
  margin: 20px 0;
  font-size: 13px;
}
.citation-list summary {
  cursor: pointer;
  font-weight: 500;
}
.citation-list summary b {
  font-size: 11px;
  background: var(--soft);
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 5px;
}
.citation-item {
  display: block;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  background: transparent;
  line-height: 1.6;
  font-size: 12px;
  width: 100%;
}
.citation-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
@media (max-width: 1150px) {
  .classification-cards {
    grid-template-columns: 1fr 1fr;
  }
  .classification-card:last-child {
    grid-column: 1/-1;
  }
  .tabs {
    gap: 18px;
  }
  .network-stage {
    height: 470px;
  }
}
@media (max-width: 760px) {
  .viewbar {
    flex-wrap: wrap;
  }
  .tabs {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .tabs .tab {
    font-size: 11px;
  }
  .viewbar > #export {
    margin-left: auto;
    margin-bottom: 9px;
  }
  .classification-cards {
    grid-template-columns: 1fr;
  }
  .classification-card:last-child {
    grid-column: auto;
  }
  .network-stage {
    height: 400px;
  }
  .network-below {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .network-controls {
    gap: 10px;
  }
  .network-controls select {
    max-width: 165px;
    font-size: 11px;
  }
  .graph-tools {
    top: 10px;
    right: 10px;
  }
  .classification-toolbar {
    gap: 12px;
  }
  .classification-toolbar select {
    font-size: 11px;
  }
  .classification-card {
    padding: 22px;
  }
  .class-row {
    font-size: 12px;
  }
}

.detail-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}
.detail-toolbar > div {
  align-items: center;
  flex-wrap: wrap;
}
#detail-back {
  margin-right: 8px;
}

#network-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
