/* ImmunoPrint Web — Stylesheet */

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #dee2e6;
  --text: #212529;
  --text-muted: #6c757d;
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --absent: #991b1b;
  --decreased: #dc2626;
  --decreased-light: #fca5a5;
  --normal: #d1d5db;
  --increased-light: #93c5fd;
  --increased: #2563eb;
  --severely-increased: #1e3a8a;
  --empty: #f3f4f6;
  --font-mono: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

header .version {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

nav {
  display: flex;
  gap: 4px;
}

nav button {
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

nav button:hover { background: var(--bg); }
nav button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.spacer { flex: 1; }

/* ── Controls bar ─────────────────────────────────────────────────────────── */

.controls {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.controls label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.controls select, .controls input {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  background: var(--surface);
}

.controls input[type="text"] { width: 200px; }

.legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-cell {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.1);
}

/* ── Main content ─────────────────────────────────────────────────────────── */

main {
  padding: 16px 24px;
}

.view { display: none; }
.view.active { display: block; }

/* ── Heatmap ──────────────────────────────────────────────────────────────── */

.heatmap-container {
  overflow: auto;
  max-height: calc(100vh - 180px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.heatmap-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}

.heatmap-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.heatmap-table th {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 4px 2px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  user-select: none;
  position: relative;
  min-width: 28px;
  max-width: 36px;
}

.heatmap-table th:hover { background: var(--primary-light); }

.heatmap-table th.col-header {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  height: 140px;
  font-size: 10px;
  white-space: nowrap;
  padding: 6px 2px;
  line-height: 1.2;
}

.heatmap-table th.gene-header {
  text-align: left;
  min-width: 70px;
  max-width: 70px;
  writing-mode: horizontal-tb;
  transform: none;
  height: auto;
  padding: 4px 6px;
  position: sticky;
  left: 0;
  z-index: 11;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.heatmap-table th.disease-header {
  text-align: left;
  min-width: 140px;
  max-width: 180px;
  writing-mode: horizontal-tb;
  transform: none;
  height: auto;
  padding: 4px 6px;
  position: sticky;
  left: 70px;
  z-index: 11;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-table th.section-header {
  background: #e5e7eb;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  writing-mode: horizontal-tb;
  transform: none;
  height: auto;
  padding: 3px 4px;
  border-bottom: 1px solid var(--border);
}

.heatmap-table td {
  width: 28px;
  height: 22px;
  min-width: 28px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: outline 0.1s;
  font-size: 10px;
  color: transparent;
}

.heatmap-table td:hover {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  color: rgba(0,0,0,0.6);
  font-weight: 600;
}

.heatmap-table td.gene-cell {
  text-align: left;
  padding: 2px 6px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  min-width: 70px;
  max-width: 70px;
  background: var(--surface);
  position: sticky;
  left: 0;
  z-index: 5;
  border-right: 1px solid var(--border);
}

.heatmap-table td.disease-cell {
  text-align: left;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--text-muted);
  min-width: 140px;
  max-width: 180px;
  background: var(--surface);
  position: sticky;
  left: 70px;
  z-index: 5;
  border-right: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-table td.gene-cell:hover { text-decoration: underline; }

/* Score colors */
.score-absent  { background: var(--absent); }
.score-n2      { background: var(--decreased); }
.score-n1      { background: var(--decreased-light); }
.score-0       { background: #e5e7eb; }
.score-p1      { background: var(--increased-light); }
.score-p2      { background: var(--increased); }
.score-empty   { background: var(--empty); }

/* ── Detail panel (slide-out) ─────────────────────────────────────────────── */

.detail-panel {
  position: fixed;
  right: -420px;
  top: 0;
  width: 420px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  z-index: 200;
  transition: right 0.25s ease;
  overflow-y: auto;
  padding: 20px;
}

.detail-panel.open { right: 0; }

.detail-panel .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.detail-panel .close-btn:hover { background: var(--bg); }

.detail-panel h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.detail-panel h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-panel .disease-tag {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-panel .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-panel .meta-item {
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
}

.detail-panel .meta-item .label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.detail-panel .meta-item .value {
  font-size: 16px;
  font-weight: 700;
}

.detail-panel .phenotype-row {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 2px;
}

.detail-panel .phenotype-row:hover { background: var(--bg); }

.detail-panel .phenotype-row .score-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.detail-panel .phenotype-row .cat-label { flex: 1; }
.detail-panel .phenotype-row .direction {
  font-weight: 600;
  font-size: 11px;
}

.detail-panel .phenotype-row .n-articles {
  font-size: 10px;
  color: var(--text-muted);
}

.detail-panel .iuis-section {
  background: var(--bg);
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 8px;
}

.detail-panel .iuis-section dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 6px;
}

.detail-panel .iuis-section dd {
  margin-left: 0;
  margin-bottom: 4px;
}

.detail-panel .pmid-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.detail-panel .pmid-list a {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg);
  border-radius: 3px;
  text-decoration: none;
  color: var(--primary);
}

.detail-panel .pmid-list a:hover {
  background: var(--primary-light);
}

/* ── Gene list / Disease list views ───────────────────────────────────────── */

.list-view {
  max-width: 1000px;
}

.list-view table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.list-view th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.list-view th:hover { color: var(--primary); }

.list-view td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.list-view tr:hover td { background: #fafbfc; }

.list-view .gene-link {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

.list-view .gene-link:hover { text-decoration: underline; }

.list-view .table-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg);
  white-space: nowrap;
}

/* ── Cell detail tooltip (for heatmap hover) ──────────────────────────────── */

.cell-tooltip {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 300;
  pointer-events: none;
  font-size: 12px;
  max-width: 300px;
  display: none;
}

.cell-tooltip .tt-gene { font-weight: 700; font-family: var(--font-mono); }
.cell-tooltip .tt-cat { color: var(--text-muted); }
.cell-tooltip .tt-direction { font-weight: 600; margin: 4px 0; }
.cell-tooltip .tt-detail { color: var(--text-muted); font-size: 11px; }

/* ── Stats bar ────────────────────────────────────────────────────────────── */

.stats {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
}

.stats strong { color: var(--text); }

/* ── Detail panel tabs ───────────────────────────────────────────────────── */

.detail-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.detail-tab {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--bg);
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}

.detail-tab:hover { background: var(--surface); color: var(--text); }
.detail-tab.active {
  background: var(--surface);
  color: var(--primary);
  border-bottom: 2px solid var(--surface);
  margin-bottom: -1px;
}

/* ── Wide panel for gene reports ─────────────────────────────────────────── */

.detail-panel.wide {
  width: 750px;
  right: 0;
}

/* ── Section navigation links ──────────────────────────────────────────── */

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  padding: 8px 10px;
  margin: 12px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
}

.section-nav strong {
  color: var(--text-muted);
  margin-right: 4px;
}

.section-nav a {
  color: var(--primary);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background 0.1s;
}

.section-nav a:hover {
  background: var(--primary-light);
  text-decoration: none;
}

/* ── Unified page sections ─────────────────────────────────────────────── */

.page-section {
  margin-bottom: 16px;
}

.section-heading {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px !important;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
}

/* ── External links row ────────────────────────────────────────────────── */

.external-links {
  display: flex;
  gap: 12px;
  margin: 6px 0 12px;
}

.external-links a {
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--primary);
  border-radius: 3px;
}

.external-links a:hover {
  background: var(--primary-light);
}

/* ── Gene report styling ─────────────────────────────────────────────────── */

.report-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 4px;
}

.report-section {
  margin-bottom: 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.report-section-title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.report-section-title:hover { background: #e5e7eb; }

.toggle-icon {
  font-size: 10px;
  color: var(--text-muted);
}

.report-section-body {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.65;
}

.report-section-body h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--text);
}

.report-section-body h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--text);
}

.report-section-body h6 {
  font-size: 12px;
  font-weight: 600;
  margin: 10px 0 4px;
  color: var(--text-muted);
}

.report-section-body p {
  margin-bottom: 8px;
}

.report-section-body ul {
  margin: 4px 0 8px 20px;
}

.report-section-body li {
  margin-bottom: 3px;
}

.report-section-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.report-section-body .pmid-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
}

.report-section-body .pmid-link:hover {
  text-decoration: underline;
}

.gene-report .pmid-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gene-report .pmid-list a {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg);
  border-radius: 3px;
  text-decoration: none;
  color: var(--primary);
}

.gene-report .pmid-list a:hover {
  background: var(--primary-light);
}

/* ── Heatmap toggle ──────────────────────────────────────────────────── */

.heatmap-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.heatmap-toggle .toggle-btn {
  padding: 4px 14px;
  border: none;
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}

.heatmap-toggle .toggle-btn:not(:last-child) {
  border-right: 1px solid var(--border);
}

.heatmap-toggle .toggle-btn:hover {
  background: var(--bg);
}

.heatmap-toggle .toggle-btn.active {
  background: var(--primary);
  color: white;
}

/* ── Hypervoxel heatmap column headers ───────────────────────────────── */

.heatmap-table th.voxel-gated {
  background: rgba(147, 197, 253, 0.25);
  border-bottom-color: #93c5fd;
}

.heatmap-table th.voxel-ungated {
  background: rgba(196, 181, 253, 0.25);
  border-bottom-color: #c4b5fd;
}

.heatmap-table th.voxel-gated:hover {
  background: rgba(147, 197, 253, 0.45);
}

.heatmap-table th.voxel-ungated:hover {
  background: rgba(196, 181, 253, 0.45);
}

/* ── Hypervoxel fold-change cell colors ──────────────────────────────── */

.hv-decreased-strong { background: #dc2626 !important; }
.hv-decreased        { background: #fca5a5 !important; }
.hv-neutral          { background: #e5e7eb !important; }
.hv-increased        { background: #93c5fd !important; }
.hv-increased-strong { background: #2563eb !important; }
.hv-sig              { outline: 1px solid rgba(0,0,0,0.25); outline-offset: -1px; }
.hv-empty            { background: var(--empty) !important; }

/* n_sig badge on gene column */
.n-sig-badge {
  display: inline-block;
  font-size: 9px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0 4px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 400;
  font-family: var(--font-sans);
}

/* ── Hypervoxel controls (replicates + clustering) ──────────────────────── */

.hv-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hv-controls .checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.hv-controls .checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.cluster-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}

.cluster-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.cluster-btn.loading {
  opacity: 0.6;
  cursor: wait;
}

/* ── Heatmap wrapper (dendrogram + table side by side) ──────────────────── */

.heatmap-wrapper {
  display: flex;
  align-items: flex-start;
}

.dendrogram-svg {
  flex-shrink: 0;
  overflow: visible;
}

/* ── Replicate view: genotype column styling ────────────────────────────── */

.heatmap-table td.genotype-cell {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  min-width: 30px;
  max-width: 40px;
  padding: 2px 3px;
  color: white;
}

.heatmap-table td.genotype-hom { background: #dc2626; }
.heatmap-table td.genotype-het { background: #f59e0b; }
.heatmap-table td.genotype-hom_mean { background: #7f1d1d; }

.heatmap-table td.sample-cell {
  text-align: left;
  padding: 2px 4px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 90px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface);
  position: sticky;
  left: 70px;
  z-index: 5;
  border-right: 1px solid var(--border);
}

.heatmap-table th.sample-header {
  text-align: left;
  min-width: 90px;
  max-width: 120px;
  writing-mode: horizontal-tb;
  transform: none;
  height: auto;
  padding: 4px 4px;
  position: sticky;
  left: 70px;
  z-index: 11;
  background: var(--surface);
  border-right: 1px solid var(--border);
  font-size: 10px;
}

.heatmap-table th.genotype-header {
  text-align: center;
  min-width: 30px;
  max-width: 40px;
  writing-mode: horizontal-tb;
  transform: none;
  height: auto;
  padding: 4px 2px;
  font-size: 10px;
}

/* Gene group border in replicate view */
.heatmap-table tr.gene-group-first td {
  border-top: 2px solid var(--border);
}

/* Replicate mean row styling */
.heatmap-table tr.replicate-mean td.gene-cell {
  font-weight: 700;
  color: var(--text);
}

.heatmap-table tr.replicate-mean td.sample-cell {
  font-weight: 700;
  color: var(--text);
}

/* ── Concordance / Provenance section ────────────────────────────────────── */

.concordance-section {
  margin-bottom: 16px;
}

.concordance-table {
  border-collapse: collapse;
  font-size: 11px;
  width: auto;
}

.concordance-table th,
.concordance-table td {
  border: 1px solid var(--border);
  padding: 2px 4px;
  text-align: center;
  vertical-align: middle;
}

.concordance-table thead th {
  background: var(--bg);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 4px;
}

.conc-header-pipe { min-width: 40px; }
.conc-header-pmid { min-width: 60px; }
.conc-header-year { min-width: 32px; }
.conc-header-cat  { min-width: 24px; max-width: 52px; font-size: 9px !important; }

.conc-cell-pipe {
  text-align: center;
  white-space: nowrap;
}

.conc-cell-pmid {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
}

.conc-cell-pmid .pmid-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 10px;
}

.conc-cell-pmid .pmid-link:hover {
  text-decoration: underline;
}

.conc-cell-year {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

.conc-cell-score {
  width: 24px;
  height: 22px;
  min-width: 24px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: outline 0.1s;
}

.conc-cell-score:hover {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
}

.conc-empty {
  background: var(--empty) !important;
}

.conc-consensus-row td {
  border-top: 2px solid var(--text-muted);
}

.conc-consensus {
  font-weight: 800 !important;
  font-size: 11px !important;
}

/* Pipeline tags */

.pipeline-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
  letter-spacing: 0.3px;
}

.pipeline-tag-sm {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Evidence detail expandable block */

.evidence-detail {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  margin-top: 6px;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.evidence-detail-table {
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 6px;
  width: 100%;
}

.evidence-detail-table td {
  padding: 2px 6px;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}

.evidence-detail-table .ev-label {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  width: 110px;
  text-align: left;
}

.evidence-detail-table .ev-value {
  color: var(--text);
  text-align: left;
}

.evidence-text {
  font-style: italic;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.03);
  border-radius: 4px;
  border-left: 3px solid var(--primary);
}
