/* LUCAS validation — extends counties.css */

.summary-stat { font-size: 0.92rem; color: var(--text-dim); }

.byclass-card,
.cm-card { padding: 0; }

.metrics-panel.lucas-overall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 14px 18px;
}
.metrics-panel.lucas-overall .stat {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.metrics-panel.lucas-overall .stat .label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.metrics-panel.lucas-overall .stat .value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 4px;
}
.metrics-panel.lucas-overall .stat .sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.byclass-panel { padding: 10px 18px 14px; }
.byclass-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.byclass-table th, .byclass-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}
.byclass-table th:first-child,
.byclass-table td:first-child { text-align: left; }
.byclass-table th {
  position: sticky; top: 0;
  background: var(--bg-card);
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.byclass-table tr:hover td { background: rgba(255, 255, 255, 0.03); }
.byclass-table .f1-bar {
  display: inline-block;
  width: 90px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}
.byclass-table .f1-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fb7185, #fbbf24, #34d399);
  border-radius: 3px;
}

.cm-panel { padding: 10px 18px 18px; overflow-x: auto; }
.cm-table { border-collapse: collapse; font-size: 0.78rem; }
.cm-table th, .cm-table td {
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--border);
  min-width: 36px;
}
.cm-table th {
  background: var(--bg-card-hover);
  color: var(--text-dim);
  font-weight: 500;
}
.cm-table th.row-label,
.cm-table td.row-label {
  text-align: right;
  background: var(--bg-card-hover);
  color: var(--text-bright);
  font-weight: 500;
  position: sticky; left: 0;
}
.cm-table td.diag { font-weight: 600; color: var(--text-bright); }

.interpretation-card .caveat {
  background: rgba(245, 158, 11, 0.06);
  border-left: 3px solid var(--warn, #f59e0b);
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 0.92rem;
}
