.btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.8rem;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  background: var(--color-bg);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #2563eb;
}

.learning-path-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.path-progress-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.path-progress-bar {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.path-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.25s ease;
}

.path-node-type {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  background: #e2e8f0;
  color: var(--color-muted);
}

.path-node-type.paper { background: #dbeafe; color: var(--color-paper); }
.path-node-type.concept { background: #dcfce7; color: var(--color-concept); }
.path-node-type.tool { background: #ffedd5; color: var(--color-tool); }

.path-step-content {
  height: 11rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.path-node-title {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.path-narration {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text);
}

.path-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.path-nav .btn {
  flex: 1;
}

.path-legend {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.path-legend h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-swatch.paper { background: var(--color-paper); }
.legend-swatch.concept { background: var(--color-concept); border-radius: 50%; }
.legend-swatch.tool { background: var(--color-tool); }
.legend-swatch.external {
  background: var(--color-external);
  transform: rotate(45deg) scale(0.85);
}

.graph-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
