body {
  background: #f5f7f9;
}

.card {
  border-radius: 8px;
}

.card-header {
  background: #fff;
}

.nav-tabs .nav-link {
  color: #475569;
}

.nav-tabs .nav-link.active {
  color: #0f172a;
  font-weight: 650;
}

.table {
  table-layout: fixed;
}

.table th {
  color: #64748b;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.table td,
.table th {
  overflow-wrap: anywhere;
}

.metrics-table th,
.metrics-table td {
  min-width: 7rem;
}

.metrics-table th:nth-child(5),
.metrics-table td:nth-child(5) {
  min-width: 16rem;
}

.metric-filters .form-label {
  margin-bottom: 0.2rem;
}

.image-stage {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: auto;
  padding: 0.75rem;
}

.tsne-image {
  max-width: 100%;
  height: auto;
}

.tsne-full-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
  width: 100%;
}

.tsne-panel {
  min-height: 360px;
}

.tsne-panel img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

@media (max-width: 992px) {
  .tsne-full-pair {
    grid-template-columns: 1fr;
  }
}

.log-button {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
}

.log-button span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-button span:last-child {
  color: #64748b;
  flex: 0 0 auto;
}

.log-viewer {
  min-height: 360px;
  max-height: 68vh;
  overflow: auto;
  white-space: pre-wrap;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
}

@media (max-width: 992px) {
  .table th:nth-child(5),
  .table td:nth-child(5),
  .table th:nth-child(6),
  .table td:nth-child(6) {
    display: none;
  }
}
