:root {
  --text-primary: #000;
  --text-secondary: #333;
  --text-muted: #666;
  --accent: #2e8b57;
  --border: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: '__copernicus_669e4a','__copernicus_Fallback_669e4a',Georgia,'Times New Roman',serif;
  background: #fff;
  color: #000;
  line-height: 1.5;
  max-width: 850px;
  margin: 0 auto;
  padding: 60px 40px;
}


.header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.name-badge {
  background: black;
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 2.8rem;
}

.intro {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: justify;
}

.last-updated {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
  text-transform: uppercase;
}


.accent-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted;
}


.section {
  margin-bottom: 60px;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.note-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.note-small {
  font-size: 0.85rem;
}


.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.metric-card {
  padding: 15px 10px;
  border: 1px solid #eee;
}

.metric-val {
  font-family: "Courier New", monospace;
  font-size: 1.8rem;
  font-weight: 700;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}


.table-wrapper {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
}

.kg-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: '__copernicus_669e4a','__copernicus_Fallback_669e4a',Georgia,'Times New Roman',serif;
}

.kg-table th {
  background: #fff;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 12px 8px;
  text-align: left;
  border-top: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.kg-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  color: var(--text-primary);
  font-size: 13px;
  white-space: nowrap;
}

.kg-table td:nth-child(5) {
  white-space: normal;
}

.kg-table td:nth-child(2) {
  font-family: "Courier New", monospace;
  color: var(--accent);
  font-size: 12px;
}

.conf-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.conf-bar {
  height: 4px;
  width: 40px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.conf-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.status-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-block;
}

.status-verified {
  background: rgba(46, 139, 87, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.status-match {
  background: rgba(255, 200, 0, 0.1);
  color: #cc8800;
  border: 1px solid #cc8800;
}

.table-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}


.novel-tag {
  border: 1px solid #000;
  padding: 1px 5px;
  font-size: 0.7rem;
  font-weight: 700;
}

.muted {
  color: #888;
}

.mono {
  font-family: "Courier New", monospace;
}

/* CHART */

.chart-container {
  border: 1px solid var(--border);
  margin-top: 20px;
}

.chart-container img {
  max-width: 100%;
  display: block;
}

.chart-pending {
  color: #999;
  padding: 20px;
}


.relation-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.rel-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rel-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: "Courier New", monospace;
}

.rel-bar {
  height: 6px;
  background: #eee;
  border: 1px solid #ddd;
}

.rel-fill {
  height: 6px;
  background: var(--accent);
}


.iframe-container {
  width: 100%;
  height: 520px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


@media (max-width: 600px) {
  body {
    padding: 20px 15px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    border: none;
  }

  .metric-card {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}
