body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  padding: 20px;
}

.wizard-container {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

h1 { margin: 0 0 10px; font-size: 22px; }
h2 { margin: 14px 0 10px; font-size: 18px; }

.muted { color: #666; font-size: 13px; margin: 0 0 12px; }

.steps-nav, .substeps-nav {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.step-pill, .sub-pill {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: #eee;
  color: #666;
}

.step-pill.active, .sub-pill.active {
  background: #0073aa;
  color: #fff;
  font-weight: 600;
}

.screen { display: none; }
.screen.active { display: block; }

.subscreen { display: none; }
.subscreen.active { display: block; }

.form-row { margin-bottom: 12px; }
.row-title { font-weight: 600; margin-bottom: 6px; display: block; }

.inline { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 400; }

input[type="text"], input[type="email"], select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status {
  margin-top: 8px;
  font-size: 13px;
  min-height: 18px;
  color: #555;
}

.status.ok { color: #008000; }
.status.error { color: #d63638; }

.resume {
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  white-space: pre-wrap;
}

.wizard-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  margin-top: 16px;
  padding: 12px 0 0;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  background: #0073aa;
  color: #fff;
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.debug {
  margin-top: 18px;
  padding: 10px;
  font-size: 12px;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 4px;
}
