/* Styles for eigenvalue/eigenvector explorer */
.eigen .card {
  margin-bottom: 1.5rem;
}

.eigen .mode-row,
.eigen .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.eigen label.inline {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  min-width: 160px;
}

.eigen label.inline textarea,
.eigen label.inline input[type="text"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

.eigen textarea#matA {
  min-width: 320px;
  min-height: 84px;
  resize: vertical;
}

.eigen .actions button {
  min-width: 120px;
}

.eigen .grid-two {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.eigen canvas {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  width: 100%;
  height: auto;
}

.eigen .table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.eigen .table th,
.eigen .table td {
  border: 1px solid #d9d9d9;
  padding: 0.4rem 0.55rem;
  text-align: right;
}

.eigen .table th:first-child,
.eigen .table td:first-child {
  text-align: center;
}

.eigen .badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 0.45rem;
  background: #eef3ff;
  font-size: 0.85em;
  margin-left: 0.45rem;
}

.eigen .small-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  color: #555;
}

.eigen #err {
  margin-top: 0.6rem;
  color: #b00020;
}

@media (max-width: 1000px) {
  .eigen .grid-two {
    grid-template-columns: 1fr;
  }
}
