/* ===== Retro UI ===== */
.factory-retro-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.factory-retro-textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-family);
  resize: vertical;
  min-height: 80px;
  transition: border-color 150ms;
}

.factory-retro-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.factory-retro-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.factory-retro-result {
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.factory-retro-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.factory-retro-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-md, 6px);
  margin-bottom: 8px;
}

.factory-retro-metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.factory-retro-metric-value {
  font-size: 16px;
  font-weight: 700;
  font-family: "SF Mono", "Fira Code", monospace;
}

.factory-retro-metric-value.good {
  color: #059669;
}

.factory-retro-metric-value.warn {
  color: #D97706;
}

.factory-retro-patterns {
  margin-top: 10px;
}

.factory-retro-patterns-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.factory-retro-patterns ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.factory-retro-submitted {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  margin-top: 8px;
}

/* effortRatio Trend Chart */
.factory-retro-trend {
  margin-top: 12px;
}

.factory-retro-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 0;
  height: 100px;
}

.factory-trend-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.factory-trend-bar {
  width: 24px;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 300ms;
}

.factory-trend-bar.good {
  background: #34D399;
}

.factory-trend-bar.warn {
  background: #FBBF24;
}

.factory-trend-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== Phase Review Report Sub-sections ===== */
.factory-phase-review-next {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.factory-phase-review-objective {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 8px;
}

.factory-phase-review-features {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.factory-phase-review-scope {
  margin-top: 12px;
}

.factory-dep {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Review section ===== */
.factory-review-plan-summary {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-secondary);
  font-size: 0.85em;
}
