* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6fb;
  color: #0f172a;
}
.container {
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 20px 44px;
}
.page-header {
  margin-bottom: 14px;
}
h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.01em;
}
.page-desc {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}
.sub {
  color: #6b7280;
  margin-bottom: 16px;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
h2,
h3 {
  margin-top: 0;
  color: #0f172a;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row.two {
  align-items: flex-start;
}
.row.two > div {
  flex: 1;
  min-width: 360px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
button,
select,
input,
a {
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  transition: all 0.18s ease;
}
button {
  cursor: pointer;
  font-weight: 600;
}
button.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
button.btn-primary:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}
button.btn-secondary,
a.btn-secondary {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}
button.btn-secondary:hover,
a.btn-secondary:hover {
  background: #eef2ff;
  border-color: #93c5fd;
}
a.btn-link {
  display: inline-flex;
  align-items: center;
}
button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: none;
}
a {
  text-decoration: none;
  color: #0f172a;
}
.toolbar-card {
  padding: 14px 16px;
}
.top-tabs {
  display: inline-flex;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
}
.top-tab {
  min-width: 96px;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
}
.report-link {
  color: #1d4ed8;
  text-decoration: underline;
}
.report-link:hover {
  color: #1e40af;
}
.job {
  min-height: 28px;
  white-space: pre-wrap;
  margin-top: 10px;
  color: #334155;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 640px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.list li {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  line-height: 1.45;
}
.list li:hover {
  background: #f8fafc;
}
.list li.active {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
}
.reviewer-row {
  align-items: center;
}
.reviewer-row select,
.reviewer-row input {
  min-width: 180px;
}
.hint {
  color: #64748b;
  font-size: 12px;
}
.detail {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  height: 420px;
  padding: 12px;
  white-space: pre-wrap;
  overflow: auto;
  margin-bottom: 10px;
  background: #fff;
  line-height: 1.45;
}
.edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
th,
td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}
.long-cell {
  max-width: 260px;
}
.cell-ellipsis {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-label {
  width: 90px;
}
.col-router {
  width: 90px;
}
.col-top1_accuracy,
.col-top3_accuracy,
.col-mrr,
.col-top1_delta_vs_last {
  width: 110px;
}
.col-cases,
.col-report_json {
  width: 220px;
}
::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
