.relocate .steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.25rem;
}
.relocate .step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  font-weight: 500;
}
.relocate .step span {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: hsl(var(--muted));
  font-size: 0.7rem;
}
.relocate .step.is-active,
.relocate .step.is-done {
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  background: hsl(var(--secondary));
}
.relocate .step.is-done span,
.relocate .step.is-active span {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.relocate-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .relocate-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.form-stack { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; font-size: 0.875rem; }
.field.inline { grid-template-columns: 1fr auto; align-items: center; }
.field span:first-child { font-weight: 500; }
.field .hint { color: hsl(var(--muted-foreground)); font-size: 0.75rem; }
.field input[type="text"],
.field input[type="number"],
.field select {
  height: 2.5rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0 0.75rem;
  font: inherit;
}
.fieldset {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
}
.relocate-map {
  height: 420px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}
.scorecards { display: grid; gap: 0.75rem; }
.scorecard {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: hsl(var(--card));
}
.scorecard header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.band {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
}
.band.excellent, .band.good { background: hsl(var(--secondary)); }
.band.failed, .band.poor { background: hsl(var(--destructive) / 0.12); }
.fail-list, .comp-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}
#brief-body pre {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  background: hsl(var(--muted) / 0.4);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid hsl(var(--border));
}

.kicker { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 0.35rem; }
.outcome { color: hsl(var(--muted-foreground)); max-width: 40rem; }
.sticky-steps {
  position: sticky;
  top: 3.5rem;
  z-index: 15;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}
.plan-card { margin-bottom: 1rem; }
.plan-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}
.plan-dl > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.plan-dl dt { color: hsl(var(--muted-foreground)); font-weight: 500; margin: 0; }
.plan-dl dd { margin: 0; }
.limit-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.limit-list li {
  font-size: 0.8125rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 4px);
  background: hsl(var(--muted) / 0.35);
}
.limit-list .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.35rem;
  color: hsl(var(--muted-foreground));
}
.evidence-ok { color: hsl(var(--foreground)); }
.evidence-fail { color: hsl(var(--destructive)); }
@media (max-width: 719px) {
  .relocate-grid { grid-template-columns: 1fr; }
  .map-panel { order: 3; }
  .relocate-map { height: 280px; }
  .btn, .step, select, input { min-height: 44px; }
  .plan-dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

.form-error {
  color: hsl(var(--destructive));
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--destructive) / 0.35);
  border-radius: calc(var(--radius) - 4px);
  background: hsl(var(--destructive) / 0.08);
}
.review-gate {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: hsl(var(--muted) / 0.3);
}
.map-pick-hint { margin: 0 0 0.5rem; }

.muted-hint { color: hsl(var(--muted-foreground)); font-size: 0.75rem; font-weight: 400; }
