* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

.job-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.job-form h2 {
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

button:hover {
  background: #0052a3;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.live-canvas {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.live-canvas h2 {
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.canvas-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1.5rem;
  min-height: 600px;
}

.panel {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.5rem;
  background: #fafafa;
}

.panel h3 {
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-size: 1.2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

/* Timeline Panel */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  border-left: 4px solid #ddd;
  transition: all 0.3s;
}

.timeline-item.active {
  border-left-color: #0066cc;
  background: #e6f2ff;
}

.timeline-item.complete {
  border-left-color: #00aa44;
  background: #e6ffe6;
}

.timeline-item.error {
  border-left-color: #cc0000;
  background: #ffe6e6;
}

.timeline-icon {
  font-size: 1.5rem;
  min-width: 2rem;
  text-align: center;
}

.timeline-item.active .timeline-icon {
  animation: pulse 1.5s infinite;
}

.timeline-item.complete .timeline-icon::before {
  content: '✓';
  color: #00aa44;
}

.timeline-item.error .timeline-icon::before {
  content: '✗';
  color: #cc0000;
}

.timeline-content {
  flex: 1;
}

.timeline-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-status {
  font-size: 0.9rem;
  color: #666;
}

.timeline-item.active .timeline-status {
  color: #0066cc;
  font-weight: 600;
}

.timeline-item.complete .timeline-status {
  color: #00aa44;
}

/* Interpretation State Panel */
.interpretation-state {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.state-section {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.state-section h4 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.state-value {
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.5;
  min-height: 1.5rem;
}

.alignment-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.alignment-badge.aligned {
  background: #e6ffe6;
  color: #00aa44;
}

.alignment-badge.drift {
  background: #fff4e6;
  color: #ff8800;
}

.alignment-badge.contradiction {
  background: #ffe6e6;
  color: #cc0000;
}

.alignment-badge.silence {
  background: #f0f0f0;
  color: #666;
}

.confidence-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.confidence-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
}

.confidence-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
  margin: 0 1rem;
}

.confidence-fill {
  height: 100%;
  background: #0066cc;
  transition: width 0.3s;
}

/* Evidence Panel */
.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
}

.evidence-placeholder {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

.evidence-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #0066cc;
}

.evidence-attribute {
  font-weight: 600;
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.evidence-snippet {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  background: #f9f9f9;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.evidence-highlight {
  background: #fff4e6;
  padding: 0 2px;
  border-radius: 2px;
}

.error-message {
  background: #ffe6e6;
  color: #cc0000;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #cc0000;
  margin-top: 1rem;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .canvas-grid {
    grid-template-columns: 1fr;
  }
}

