body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.scope-card,
.policy-card {
  text-align: left;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.scope-card:hover,
.policy-card:hover {
  border-color: #c7d2fe;
}
.scope-card.selected,
.policy-card.selected {
  border-color: #4f46e5;
  background: #eef2ff;
  box-shadow: 0 0 0 1px #4f46e5 inset;
}

.template-chip {
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  background: #fff;
  color: #475569;
  transition: all 0.15s;
  cursor: pointer;
}
.template-chip:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #eef2ff;
}

.freq-pill {
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  background: #fff;
  color: #334155;
  transition: all 0.15s;
  cursor: pointer;
}
.freq-pill:hover {
  border-color: #c7d2fe;
}
.freq-pill.selected {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.day-chip {
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  background: #fff;
  color: #334155;
  transition: all 0.15s;
  cursor: pointer;
}
.day-chip:hover {
  border-color: #c7d2fe;
}
.day-chip.selected {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.add-dest-btn {
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: #475569;
  background: #fff;
  transition: all 0.15s;
  cursor: pointer;
}
.add-dest-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.dest-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.run-report h1,
.run-report h2,
.run-report h3 {
  font-weight: 600;
  color: #1e293b;
  margin: 0.75em 0 0.35em;
}
.run-report h1 { font-size: 0.95rem; }
.run-report h2 { font-size: 0.9rem; }
.run-report h3 { font-size: 0.85rem; }
.run-report p {
  margin: 0.4em 0;
}
.run-report ul,
.run-report ol {
  margin: 0.4em 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.run-report ol {
  list-style: decimal;
}
.run-report li {
  margin: 0.2em 0;
}
.run-report a {
  color: #4f46e5;
  text-decoration: underline;
}
.run-report code {
  background: #e2e8f0;
  border-radius: 0.25rem;
  padding: 0 0.25rem;
}
.run-report blockquote {
  border-left: 3px solid #cbd5e1;
  padding-left: 0.75rem;
  color: #64748b;
  margin: 0.4em 0;
}
.run-report > :first-child {
  margin-top: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #c7d2fe;
  border-top-color: #4f46e5;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}
