.cheat-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.cheat-col-header {
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: .75rem 1rem;
  background: var(--instruction-bg-highlight);
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.cheat-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.cheat-row:last-child {
  border-bottom: none;
}

.key {
  background: var(--instruction-bg-highlight);
}

#cheat-legend {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: .75rem;
}

#cheat-legend-swatch {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border);
  border-radius: .15rem;
  flex-shrink: 0;
}

.cheat-row > span:first-child {
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  padding: .4rem .75rem;
  min-width: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: .5rem;
}

.cheat-row > span:last-child {
  font-size: var(--text-sm);
  padding: .4rem .75rem .4rem 0;
}

#concept-map-svg {
  width: 100%;
  height: min(65vh, 600px);
}

.map-node {
  cursor: pointer;
}

.map-node rect {
  rx: 4;
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
  transition: fill var(--dur-normal), stroke var(--dur-normal);
}

.map-node.central rect {
  fill: var(--instruction-bg-highlight);
  stroke: var(--accent);
}

.map-node.highlighted rect {
  stroke: var(--accent);
  stroke-width: 2;
}

.map-node text {
  font-family: monospace;
  font-size: 8.5px;
  fill: var(--text);
}

.map-edge {
  stroke: var(--border);
  stroke-width: 1.5;
  fill: none;
}

.map-edge.highlighted {
  stroke: var(--accent);
  stroke-width: 2;
}

.map-edge-leader {
  stroke: var(--border);
  stroke-width: 0.5;
}

.map-edge-label-bg {
  fill: var(--bg);
  fill-opacity: 0.85;
  stroke: var(--border);
  stroke-width: 0.5;
  rx: 3;
}

.map-edge-label {
  fill: var(--text-dim);
  font-family: var(--mono);
  font-size: 7px;
}

.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.quiz-level-badge {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--accent);
}

.symptom-condition {
  font-family: var(--serif);
  font-size: var(--text-lg);
  text-align: center;
  padding: 1.5rem;
  background: var(--surface2);
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.quiz-badge-wrap {
  margin-bottom: .5rem;
}

.quiz-progress {
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.quiz-prompt {
  margin-top: .5rem;
  font-size: var(--text-sm);
}
