/* Step cards in lab workflow */
.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.step-card.active { border-color: var(--brand-primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.step-card.completed { border-color: var(--success); }

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.1s;
}

.step-header:hover { background: var(--bg-subtle); }

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.step-card.active .step-number { background: var(--brand-primary); color: white; border-color: var(--brand-primary); }
.step-card.completed .step-number { background: var(--success); color: white; border-color: var(--success); }

.step-title { flex: 1; font-weight: 600; }
.step-desc { font-size: 12px; color: var(--text-secondary); }

.step-body {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.step-body.collapsed { display: none; }

.step-actions { display: flex; gap: 0.5rem; justify-content: flex-end; padding-top: 1rem; }

/* Action blocks */
.action-block {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--border-color);
}

.action-block.type-instruction { background: var(--color-instruction); border-left-color: var(--color-instruction-text); color: var(--color-instruction-text); }
.action-block.type-condition { background: var(--color-condition); border-left-color: var(--color-condition-text); color: var(--color-condition-text); }
.action-block.type-timer { background: var(--color-timer); border-left-color: var(--color-timer-text); }
.action-block.type-calculation { background: var(--color-calculation); border-left-color: var(--color-calculation-text); }
.action-block.type-thermal_profile { background: var(--color-thermal); border-left-color: var(--color-thermal-text); }
.action-block.type-checkpoint { background: var(--color-checkpoint); border-left-color: var(--color-checkpoint-text); }
.action-block.type-measurement { background: var(--color-measurement); border-left-color: var(--color-measurement-text); }
.action-block.type-equimolar_pool { background: var(--color-equimolar); border-left-color: var(--color-equimolar-text); }
.action-block.type-equimass_pool { background: var(--color-equimass); border-left-color: var(--color-equimass-text); }

.action-label {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Timer */
.timer-display {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
  color: var(--color-timer-text);
}

.timer-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Thermal profile */
.thermal-phases {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 120px;
  padding-top: 1rem;
}

.thermal-phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.thermal-bar {
  width: 100%;
  min-height: 20px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-thermal-text);
  opacity: 0.7;
  transition: opacity 0.15s;
}

.thermal-bar:hover { opacity: 1; }

.thermal-label {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
  color: var(--color-thermal-text);
  font-weight: 500;
}

/* Measurement table */
.measurement-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.measurement-table th {
  background: var(--color-measurement);
  color: var(--color-measurement-text);
  font-size: 11px;
  text-transform: uppercase;
  padding: 0.5rem 0.6rem;
}

.measurement-table td { padding: 0.4rem 0.6rem; }

.measurement-table input {
  width: 100%;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-mono);
  background: var(--bg-surface);
}

.measurement-table input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* Checkpoint */
.checkpoint-message {
  text-align: center;
  padding: 1rem;
  font-size: 15px;
  font-weight: 500;
}

/* Equimolar results table */
.equimolar-results { margin-top: 1rem; }

.equimolar-results table {
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Equimass results table */
.equimass-results { margin-top: 1rem; }

.equimass-results table {
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Hardware tags */
.hardware-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.hardware-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
}

.hardware-tag.required { border-color: var(--brand-primary); color: var(--brand-primary-text); }

/* Status timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  border: 2px solid var(--bg-body);
}

.timeline-item.done .timeline-dot { background: var(--success); }
.timeline-item.active .timeline-dot { background: var(--brand-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }

.timeline-content { font-size: 13px; }
.timeline-content strong { display: block; margin-bottom: 0.15rem; }
.timeline-content .time { color: var(--text-muted); font-size: 11px; }

/* Panel catalog cards */
.panel-card { transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.panel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.panel-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.panel-card-header h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.panel-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.panel-card-body { padding: 1.25rem; }

.panel-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.panel-card-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.panel-card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Order summary */
.order-summary {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.order-summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.order-summary dt { font-weight: 500; color: var(--text-secondary); }
.order-summary dd { font-weight: 600; text-align: right; }
.order-summary .total { font-size: 1.25rem; color: var(--brand-primary); border-top: 2px solid var(--border-color); padding-top: 0.5rem; }
