/* Topic nav tabs */
/* Topic status strip (sits under the title) */
.topic-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 0.9rem;
  margin: 0 0 1.5rem;
}
.topic-status-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
}
.topic-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topic-status-actions form {
  margin: 0;
}

.tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.tabs button {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  background: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 0.4rem 0.95rem;
  color: var(--muted);
  transition:
    background var(--duration),
    color var(--duration);
}
.tabs button:hover {
  color: var(--text);
  background: var(--surface-2);
}
.tabs-sub {
  box-shadow: none;
  margin-bottom: 0.75rem;
}
.notes-preview {
  min-height: 8rem;
}
.tabs button.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}


/* Quiz tab: what the next quiz aims at */
.weak-spots summary {
  cursor: pointer;
}
.weak-spots h4 {
  margin: 0.75rem 0 0.25rem;
}

/* Review session results: one block per lesson */
.review-round + .review-round {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 0.5rem;
}

/* Quiz confidence: picked before answering, compared with the score after */
.confidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: var(--text-sm);
}
.calibration.warn {
  color: var(--amber);
}
.calibration.good {
  color: var(--green);
}
