/* «Primeros pasos»: stepper vertical. Sin atributos style (CSP). */
.onb-wizard {
  padding: 0;
}
.onb-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 8px;
}
.onb-hero > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.onb-hero h2 {
  margin: 0;
  font-size: 20px;
}
.onb-hero p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.onb-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.onb-hero-icon .ic {
  width: 26px;
  height: 26px;
}
.onb-progress {
  padding: 8px 24px 6px;
}
.onb-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.onb-progress-text strong {
  color: var(--ink);
}
.onb-meter {
  height: 10px;
}
.onb-steps {
  list-style: none;
  margin: 0;
  padding: 14px 24px 22px;
}
.onb-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
}
.onb-step:last-child {
  padding-bottom: 0;
}
/* Línea vertical que une los pasos */
.onb-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.onb-step:last-child::before {
  display: none;
}
.onb-step.done::before {
  background: #bfe3d4;
}
.onb-marker {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.onb-step.done .onb-marker {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.onb-step.partial .onb-marker {
  border-color: var(--warm);
  color: var(--warm-ink);
  background: var(--warm-soft);
}
.onb-step.open .onb-marker {
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.onb-body {
  flex: 1;
  min-width: 0;
  padding: 6px 16px 10px;
  border-radius: var(--radius-sm);
}
.onb-step.open .onb-body {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 12px 16px 14px;
}
.onb-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.onb-head h3 {
  margin: 0;
  font-size: 15.5px;
}
.onb-step.done .onb-head h3 {
  color: var(--muted);
}
.onb-pill {
  font-size: 12px;
  font-weight: 650;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.onb-pill.done {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-color: transparent;
}
.onb-pill.partial {
  background: var(--warm-soft);
  color: var(--warm-ink);
  border-color: transparent;
}
.onb-pill.optional {
  background: var(--sky-soft);
  color: var(--sky-ink);
  border-color: transparent;
}
.onb-explain {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.onb-detected {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.onb-detected li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink);
}
.onb-detected .ic {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--brand);
  flex: none;
}
.onb-step:not(.open) .onb-detected li:nth-child(n + 3) {
  display: none;
}
.onb-step .meter {
  margin-top: 10px;
}
.onb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.onb-step:not(.open) .onb-actions .primary,
.onb-step:not(.open) .onb-actions .secondary {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}
.onb-step.done:not(.open) .onb-actions {
  display: none;
}
.onb-models {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.onb-models li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 7px 12px;
  font-size: 13px;
  align-items: center;
}
.onb-models li + li {
  border-top: 1px solid var(--line);
}
.onb-model-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.onb-model-meta {
  color: var(--muted);
}
.onb-model-data.ok {
  color: var(--brand-ink);
}
.onb-model-data.warn {
  color: var(--warm-ink);
}
.onb-card .onb-steps {
  padding-bottom: 8px;
}
.onb-card-foot {
  padding: 0 24px 18px 76px;
}
.onb-card + .stats {
  margin-top: 18px;
}
/* Vista previa de cookies pegadas (solo nombres) */
.cookie-preview {
  margin: -4px 0 10px;
  font-size: 13px;
}
.cookie-preview .hint {
  margin: 4px 0;
}
.cookie-found {
  line-height: 1.9;
}
.cookie-chip {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  padding: 0 7px;
  margin: 0 4px 2px 0;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  line-height: 1.7;
}
.cookie-chip.req {
  background: var(--brand-soft);
  border-color: #bfe3d4;
  color: var(--brand-ink);
  font-weight: 600;
}
.cookie-chip.miss {
  background: var(--danger-soft);
  border-color: #f5cfc9;
  color: var(--danger);
}
.cookie-msg {
  margin: 4px 0;
  font-weight: 600;
}
.cookie-msg.ok {
  color: var(--brand-ink);
}
.cookie-msg.bad {
  color: var(--danger);
}
.cookie-msg.warn {
  color: var(--warm-ink);
}
.cookie-how {
  margin-top: -6px;
}
@media (max-width: 700px) {
  .onb-hero {
    flex-wrap: wrap;
    padding: 18px 16px 6px;
  }
  .onb-progress,
  .onb-steps {
    padding-left: 16px;
    padding-right: 16px;
  }
  .onb-models li {
    grid-template-columns: 1fr auto;
  }
  .onb-model-meta {
    display: none;
  }
  .onb-card-foot {
    padding-left: 16px;
  }
}
