.viewer-section {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#squareCanvas {
  max-width: 100%;
  height: auto;
}

.slider-container {
  width: 100%;
  max-width: 400px;
}

.time-slider {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  border: 1px solid #aaa;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.time-slider::-webkit-slider-thumb:hover {
  background: #2563eb;
}

.time-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.time-slider::-moz-range-track {
  background: #ddd;
  height: 12px;
  border-radius: 6px;
  border: 1px solid #aaa;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.info-display {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Monaco', 'Menlo', monospace;
}

.info-value--p {
  color: #e74c3c;
}

.info-value--q {
  color: #2ecc71;
}

.info-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.info-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(100, 150, 255, 0.1);
  border-radius: 4px;
}

.info-value--area {
  font-size: 1.5rem;
  color: #3b82f6;
}

.explanation-section {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.explanation-section h3 {
  margin: 0 0 1rem 0;
}

.explanation-content p {
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
}

.explanation-content ul {
  margin: 0;
  padding-left: 1.5rem;
}

.explanation-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.explanation-content strong {
  color: var(--primary);
}
