@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');

:root {
  --bg: #f7f2ea;
  --bg-soft: #fbf8f2;
  --bg-elevated: rgba(255, 252, 246, 0.86);
  --bg-card: #fffaf2;
  --bg-hover: #f1e7da;
  --ink: #251f1a;
  --text: #251f1a;
  --text-secondary: #62584f;
  --text-muted: #8b7f73;
  --border: #ded0c0;
  --border-light: #c7b6a4;
  --accent: #9a5b45;
  --accent-dark: #6f3f30;
  --accent-soft: #ead4c8;
  --success: #647f71;
  --warning: #a4713f;
  --danger: #9f4f44;
  --chart-layout: #9a5b45;
  --chart-ocr: #c07a5a;
  --chart-table: #647f71;
  --chart-rag: #8f6b3f;
  --chart-vlm: #4f6f82;
  --shadow-sm: 0 1px 2px rgba(65, 46, 31, 0.06);
  --shadow: 0 10px 30px rgba(65, 46, 31, 0.08);
  --shadow-lg: 0 24px 70px rgba(65, 46, 31, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-xs: 5px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(154, 91, 69, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(154, 91, 69, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(192, 122, 90, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.45), rgba(247, 242, 234, 0));
  z-index: -1;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c7b6a4; border: 3px solid var(--bg); border-radius: 999px; }

.header {
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222, 208, 192, 0.86);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  background: #f4e7dc;
}

.nav-links { display: flex; gap: 3px; align-items: center; }

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--ink); background: rgba(154, 91, 69, 0.08); }
.nav-links a.active { color: var(--accent-dark); background: #f1e4d8; }

.github-btn {
  margin-left: 6px;
  padding: 7px 14px !important;
  background: var(--ink) !important;
  color: #fffaf2 !important;
  border-radius: var(--radius-xs) !important;
  font-weight: 700 !important;
}

.hero {
  padding: 76px 28px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(222, 208, 192, 0.72);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(780px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(154, 91, 69, 0.34), transparent);
}

.hero-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }

.hero-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 4.1rem;
  font-weight: 700;
  line-height: 0.98;
  margin-bottom: 22px;
  color: var(--ink);
}

.hero-summary {
  max-width: 690px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.hero-authors { font-size: 0.98rem; color: var(--text-secondary); margin-bottom: 5px; }
.hero-affiliation { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 30px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 37px; }

.badge,
.paper-btn,
.dataset-table .ds-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.badge {
  min-height: 38px;
  padding: 8px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.badge:hover { border-color: var(--accent); background: #f3e5d8; transform: translateY(-1px); }

.stats-bar {
  background: rgba(251, 248, 242, 0.7);
  border-bottom: 1px solid rgba(222, 208, 192, 0.78);
  padding: 22px 28px;
}

.stats-bar-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.stat-item {
  min-width: 210px;
  text-align: left;
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

.stat-value {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.55rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 800;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-change { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.search-section {
  background: rgba(251, 248, 242, 0.92);
  border-bottom: 1px solid rgba(222, 208, 192, 0.78);
  padding: 16px 28px;
  position: sticky;
  top: 66px;
  z-index: 900;
  backdrop-filter: blur(16px);
}

.search-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
}

.search-box { flex: 1; position: relative; max-width: 560px; }

.search-box input {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px 10px 43px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(154, 91, 69, 0.14);
}

.search-box input::placeholder { color: var(--text-muted); }
.search-box .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 18px; height: 18px; }

.filter-group { display: flex; gap: 7px; flex-wrap: wrap; }

.filter-btn {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover { color: var(--ink); background: rgba(154, 91, 69, 0.08); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fffaf2; }

.main { max-width: 1680px; margin: 0 auto; padding: 48px 28px; }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 62px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 150px;
}

.section-title:first-child { margin-top: 0; }

.section-title h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}

.badge-count {
  font-size: 12px;
  padding: 5px 10px;
  background: #f0e5da;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.taxonomy-container,
.dynamic-overview,
.paper-grid,
.sota-container,
.reading-container,
.feedback-container,
.footer-grid {
  display: grid;
  gap: 16px;
}

.dynamic-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 48px; }
.taxonomy-container { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); margin-bottom: 48px; }
.paper-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); margin-bottom: 48px; }
.sota-container { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 48px; }
.reading-container { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 48px; }
.feedback-container { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 48px; }

.taxonomy-card,
.dynamic-stat-card,
.paper-card,
.sota-card,
.chart-container,
.leaderboard,
.dataset-table-container,
.reading-card,
.feedback-card,
.footer-card {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(222, 208, 192, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.taxonomy-card,
.dynamic-stat-card,
.paper-card,
.sota-card,
.reading-card {
  padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.taxonomy-card::before,
.dynamic-stat-card::before,
.paper-card::before,
.sota-card::before,
.reading-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.taxonomy-card:hover,
.dynamic-stat-card:hover,
.paper-card:hover,
.sota-card:hover,
.reading-card:hover,
.footer-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.taxonomy-card:hover::before,
.dynamic-stat-card:hover::before,
.paper-card:hover::before,
.sota-card:hover::before,
.reading-card:hover::before { opacity: 1; }

.dynamic-stat-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dynamic-stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dynamic-stat-card > strong {
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
}

.dynamic-stat-note {
  color: var(--text-secondary);
  font-size: 13px;
}

.dynamic-category-card { gap: 12px; grid-column: span 2; }

.dynamic-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dynamic-category-list span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: rgba(240, 229, 218, 0.62);
}

.dynamic-category-list em {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf2;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.section-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.dynamic-category-list strong {
  color: var(--accent-dark);
  font-size: 12px;
}

.taxonomy-card { cursor: pointer; }
.taxonomy-card .tc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }

.taxonomy-card .tc-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0e2d6;
  color: var(--accent-dark);
  border: 1px solid #ddc7b5;
  font-size: 13px;
  font-weight: 800;
}

.taxonomy-card .tc-title,
.paper-title,
.sota-card-title,
.reading-card h3,
.footer-card h4,
.lb-model,
.dataset-table .ds-name {
  color: var(--ink);
  font-weight: 750;
}

.taxonomy-card .tc-title { font-size: 15px; }
.taxonomy-card .tc-count { font-size: 12px; color: var(--accent-dark); font-weight: 800; margin-top: 2px; }
.taxonomy-card .tc-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 15px; line-height: 1.55; }
.taxonomy-card .tc-tags,
.paper-tags,
.timeline-papers,
.sota-legend,
.chart-legend,
.dataset-table .ds-links { display: flex; gap: 7px; flex-wrap: wrap; }

.taxonomy-card .tc-tag,
.paper-tag,
.timeline-paper,
.reading-item .ri-tag,
.dataset-table .ds-task,
.paper-year,
.paper-stars,
.paper-source-label,
.lb-type {
  font-size: 11px;
  padding: 4px 9px;
  background: #f2e7dc;
  border: 1px solid #e2d1c1;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 700;
}

.timeline-paper {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.timeline-paper:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: #f0e4d8;
}

.timeline-container { position: relative; padding: 14px 0 4px; margin-bottom: 48px; }
.timeline-container::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 1px; background: #cbb8a5; }
.timeline-item { position: relative; padding-left: 45px; margin-bottom: 27px; }
.timeline-item::before { content: ""; position: absolute; left: 7px; top: 5px; width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px #f3e7dc; }
.timeline-year { font-size: 12px; font-weight: 800; color: var(--accent-dark); margin-bottom: 4px; letter-spacing: 0.06em; }
.timeline-title { font-size: 15px; font-weight: 750; color: var(--ink); margin-bottom: 3px; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.timeline-papers { margin-top: 10px; }

.paper-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 11px; }
.paper-title { font-size: 15px; line-height: 1.45; flex: 1; }
.paper-authors { font-size: 13px; color: var(--text-secondary); margin-bottom: 11px; }
.paper-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.paper-venue { font-size: 12px; color: var(--text-muted); font-weight: 650; }
.paper-stars { background: #e8efe8; color: #526d5f; border-color: #cfdbd1; }
.paper-source-label { background: #eef1f3; color: #4f6f82; border-color: #d1dbe0; }
.paper-actions { display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
.paper-btn { min-height: 34px; padding: 7px 12px; font-size: 12px; font-weight: 800; border: 1px solid var(--border); }
.paper-btn.primary { background: var(--ink); color: #fffaf2; border-color: var(--ink); }
.paper-btn.secondary { background: #f2e7dc; color: var(--ink); }
.paper-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.search-main { min-height: calc(100vh - 66px); }
.search-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.search-result-detail,
.search-sort-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.search-sort-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.search-result-card,
.empty-results {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(222, 208, 192, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search-result-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
}

.search-result-main {
  min-width: 0;
  flex: 1;
}

.search-result-actions {
  flex-shrink: 0;
  margin-top: 0;
}

.empty-results {
  padding: 32px;
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 26px 0 10px;
}

.page-btn {
  min-width: 36px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.page-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffaf2;
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-gap {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 2px;
}

.sota-card { padding: 16px; }
.sota-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.sota-card-header > div:first-child { min-width: 0; }
.sota-card-title { font-size: 14px; line-height: 1.3; }
.sota-card-subtitle { color: var(--text-muted); font-size: 11px; font-weight: 650; margin-top: 3px; line-height: 1.35; }
.sota-card-current { text-align: right; flex-shrink: 0; max-width: 96px; }
.sota-card-current .sota-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }
.sota-card-current .sota-value { font-family: "Source Serif 4", Georgia, serif; font-size: 24px; font-weight: 700; color: var(--accent-dark); line-height: 1.1; }
.sota-card-current .sota-model { font-size: 11px; color: var(--accent-dark); font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sota-chart { width: 100%; height: 150px; }
.sota-empty-chart { display: flex; align-items: center; justify-content: center; min-height: 160px; color: var(--text-muted); font-size: 12px; background: #f5eee5; border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.sota-legend { margin-top: 12px; }
.sota-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.sota-legend-dot,
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.sota-update-panel {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  background: #f1e6db;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sota-update-label {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.sota-update-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.sota-update-panel p {
  color: var(--text-secondary);
  font-size: 13px;
  max-width: 700px;
}

.sota-update-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.sota-source-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.sota-source-row span,
.sota-source-row a {
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 7px;
  background: #f2e7dc;
  color: var(--text-secondary);
  border: 1px solid #e2d1c1;
  text-decoration: none;
}

.sota-source-row a {
  color: var(--accent-dark);
}

.sota-source-row a:hover {
  background: var(--ink);
  color: #fffaf2;
  border-color: var(--ink);
}

.sota-mini-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
}

.sota-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px auto;
  gap: 7px;
  align-items: center;
  padding: 7px 8px;
  background: #f7f0e8;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11px;
}

.sota-mini-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
  color: var(--ink);
}

.sota-mini-row strong {
  color: var(--accent-dark);
}

.sota-mini-row em {
  color: var(--text-muted);
  font-style: normal;
  text-align: right;
}

.sota-mini-row a {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.feedback-card {
  padding: 20px 22px;
}

.feedback-card-wide {
  grid-column: 1 / -1;
}

.feedback-kicker {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.feedback-card h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 7px;
}

.feedback-card p {
  color: var(--text-secondary);
  font-size: 13px;
  max-width: 820px;
}

.feedback-cadence {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.feedback-cadence span,
.feedback-pill-list span,
.candidate-row em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e2d1c1;
  background: #f2e7dc;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  background: var(--ink);
  color: #fffaf2;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  margin-top: 4px;
}

.feedback-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 13px;
}

.candidate-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: #f7f0e8;
  border-radius: var(--radius-sm);
}

.candidate-row strong {
  color: var(--ink);
  font-size: 13px;
}

.candidate-row span {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  margin: 2px 0;
}

.candidate-row p {
  font-size: 12px;
}

.candidate-row em {
  flex-shrink: 0;
  font-style: normal;
  align-self: flex-start;
  color: var(--accent-dark);
}

.chart-container { padding: 22px; margin-bottom: 48px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.chart-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); font-weight: 650; }
.chart-svg { width: 100%; height: 300px; overflow: visible; }

.leaderboard,
.dataset-table-container { overflow: hidden; margin-bottom: 48px; }

.lb-header,
.lb-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
}

.lb-header {
  padding: 14px 20px;
  background: #f1e6db;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lb-row { padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.lb-row:hover { background: rgba(154, 91, 69, 0.06); }
.lb-rank { width: 27px; height: 27px; background: #f0e2d6; border: 1px solid #ddc7b5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--accent-dark); }
.lb-model { font-size: 14px; }
.lb-type { text-align: center; }
.lb-type.open { background: #e6eee8; color: #526d5f; border-color: #cfded3; }
.lb-type.api { background: #f3e4d1; color: #8f633c; border-color: #dfc5a7; }

.dataset-table { width: 100%; border-collapse: collapse; background: rgba(255, 250, 242, 0.9); }
.dataset-table th { background: #f1e6db; padding: 14px 18px; text-align: left; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); }
.dataset-table td { padding: 15px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.dataset-table tr:hover { background: rgba(154, 91, 69, 0.05); }
.dataset-table .ds-name { font-size: 13px; }
.dataset-table .ds-links a { min-height: 30px; padding: 5px 10px; background: #f2e7dc; color: var(--accent-dark); font-size: 12px; font-weight: 800; border: 1px solid #e2d1c1; }
.dataset-table .ds-links a:hover { background: var(--ink); color: #fffaf2; border-color: var(--ink); }

.reading-card h3 { font-size: 18px; font-family: "Source Serif 4", Georgia, serif; margin-bottom: 8px; }
.reading-card > p { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.reading-list { display: flex; flex-direction: column; gap: 10px; }
.reading-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px; background: #f5eee5; border: 1px solid transparent; border-radius: var(--radius-sm); transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.reading-item:hover { border-color: var(--border-light); background: #f0e4d8; }
.reading-item .ri-num { width: 25px; height: 25px; background: var(--ink); color: #fffaf2; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.reading-item .ri-content { flex: 1; min-width: 0; }
.reading-item .ri-title { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.reading-item .ri-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.reading-item .ri-tag { background: #ead4c8; color: var(--accent-dark); border-color: #d9bcaa; }

.footer {
  background: #eee3d6;
  border-top: 1px solid var(--border);
  padding: 42px 28px 30px;
}

.footer-inner { max-width: 1680px; margin: 0 auto; }
.footer-title { font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 17px; }
.footer-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 11px; margin-bottom: 28px; }
.footer-card { display: flex; align-items: center; gap: 13px; padding: 14px; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.footer-icon { width: 40px; height: 40px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fffaf2; flex-shrink: 0; filter: saturate(0.72); }
.footer-card h4 { font-size: 13px; margin-bottom: 2px; }
.footer-card p { font-size: 12px; color: var(--text-muted); }
.footer-bottom { text-align: center; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(37, 31, 26, 0.92); z-index: 2000; align-items: center; justify-content: center; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 20px; right: 40px; font-size: 40px; color: #fffaf2; cursor: pointer; opacity: 0.75; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 50px; color: #fffaf2; cursor: pointer; padding: 20px; opacity: 0.55; transition: opacity 0.2s; user-select: none; }
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 1024px) {
  .paper-grid,
  .taxonomy-container,
  .dynamic-overview,
  .reading-container,
  .sota-container { grid-template-columns: 1fr; }
  .dynamic-category-card { grid-column: auto; }
  .dataset-table-container { overflow-x: auto; }
  .dataset-table { min-width: 760px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 18px; min-height: 60px; }
  .nav-links { display: none; }
  .hero { padding: 56px 20px 52px; }
  .hero h1 { font-size: 2.55rem; line-height: 1.05; }
  .hero-summary { font-size: 0.98rem; }
  .main { padding: 34px 18px; }
  .search-section { top: 60px; padding: 13px 18px; }
  .search-inner { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .filter-group { flex-wrap: wrap; padding-bottom: 2px; }
  .filter-btn { flex: 1 1 30%; white-space: nowrap; }
  .stats-bar-inner { justify-content: flex-start; overflow-x: auto; }
  .stat-item { min-width: 170px; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-title-actions { flex-wrap: wrap; }
  .section-title { scroll-margin-top: 245px; }
  .chart-header { align-items: flex-start; flex-direction: column; }
  .sota-update-panel { flex-direction: column; }
  .sota-update-meta { align-items: flex-start; white-space: normal; }
  .candidate-row { flex-direction: column; }
  .search-results-toolbar,
  .search-result-card { flex-direction: column; align-items: stretch; }
  .search-result-actions { width: 100%; }
  .lb-header,
  .lb-row { grid-template-columns: 1fr 82px; }
}
