.nav-tabs {
  display: flex;
  gap: 0.35rem;
}

.nav-tab {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.85rem;
  cursor: pointer;
}

.nav-tab.active {
  border-color: var(--color-primary);
  background: #eff6ff;
  color: var(--color-primary);
  font-weight: 500;
}

.bench-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.bench-count {
  margin: 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.bench-export {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.bench-copy-status {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--color-accent);
}

.bench-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  flex: 1;
}

.bench-stats {
  height: 220px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.bench-table-wrap {
  flex: 1;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.bench-group {
  border-bottom: 1px solid var(--color-border);
}

tr.bench-group + tr.bench-group {
  border-top: none;
}

.bench-table th,
.bench-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.bench-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  z-index: 1;
}

.bench-row {
  cursor: pointer;
}

.bench-row:hover {
  background: #f8fafc;
}

.bench-row.expanded {
  background: #eff6ff;
}

.bench-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.bench-difficulty {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: capitalize;
}

.bench-difficulty.intermediate {
  background: #fef3c7;
  color: #92400e;
}

.bench-difficulty.advanced {
  background: #fee2e2;
  color: #991b1b;
}

.bench-difficulty.beginner {
  background: #dcfce7;
  color: #166534;
}

.bench-cell-truncate {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bench-detail {
  padding: 0.75rem 1rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
}

.bench-detail h4 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-muted);
}

.bench-detail p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.bench-detail p:last-child {
  margin-bottom: 0;
}

.bench-paper-link {
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
}

.bench-empty {
  padding: 2rem;
  text-align: center;
  color: var(--color-muted);
}
