/* --- stage: cards, forms, output --- */

.stage {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 860px) {
  .stage {
    grid-column: 1;
  }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* bare flex child - without this it shrinks to its widest line instead of filling the row */
.card-head > div:first-child {
  flex: 1;
  min-width: 0;
}

/* title + cost chip on one row, full-width - see stepCardHtml, so the description below
   isn't squeezed into a narrower column just because the chip sits next to the title. */
.card-head-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-head-title-row h2 {
  min-width: 0;
}

.card-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.card-sub--locked {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.card-sub--locked svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* pipeline type picker (new project, step 1) - two big clickable cards instead of a
   dropdown, so the choice (and its consequence - which module set you get afterward) is
   obvious before you commit to it */
.pipeline-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pipeline-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}

.pipeline-option:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pipeline-option-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.pipeline-option-icon svg {
  width: 12px;
  height: 12px;
}

.pipeline-option-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

.pipeline-option-desc {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.pipeline-option-cost {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--input-accent);
  background: var(--input-accent-soft);
  padding: 2px 8px;
  border-radius: 20px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip--free {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip--billed {
  background: var(--input-accent-soft);
  color: var(--input-accent);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}

.chip--risk {
  background: var(--risk-soft);
  color: var(--risk);
}

