/* How it works, step 1 · Plan it together: Reach's brief filling in as the chat answers its
   questions, then its plan (milestones, and each change with what it needs first), changed by asking.
   how-frame.css draws the workbench around it. Only tokens. */

.brief {
  display: grid;
  margin: 0;
  border-radius: var(--radius-card);
  border: var(--border) solid var(--line);
}
.brief > div {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-top: var(--border) solid var(--line);
}
.brief > div:first-child {
  border-top: 0;
}
.brief dt {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: var(--space-1) var(--space-2);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.brief dd {
  margin: 0;
  color: var(--text-strong);
}
.brief .wait {
  color: var(--text-muted);
}
.brief .chosen {
  margin-inline-start: var(--space-2);
  vertical-align: 1px;
}
.qs {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.qs b {
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}

/* The plan: each milestone with its changes; one moves when the person asks */
.ms {
  flex: none;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: var(--border) solid var(--line);
}
.ms-h {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-bottom: var(--border) solid var(--line);
  background: var(--bg-raised);
}
.ms-h b {
  min-width: 0;
  overflow: hidden;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-strong);
}
.ms-h small {
  margin-inline-start: auto;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-muted);
}
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 7px var(--space-4);
  border-top: var(--border) solid var(--line);
}
.row:first-child {
  border-top: 0;
}
.row b {
  min-width: 0;
  overflow: hidden;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-strong);
}
.row small,
.row .tag {
  margin-inline-start: auto;
  font-size: 13px;
  white-space: nowrap;
}
.row small {
  color: var(--text-muted);
}
.ms-more {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

@container (max-width: 680px) {
  .brief > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: var(--space-2) var(--space-3);
  }
  .brief > div:first-child {
    display: none;
  }
  .brief > div:nth-child(2) {
    border-top: 0;
  }
  .row {
    padding: 6px var(--space-3);
  }
  .row small {
    display: none;
  }
  .ms-h {
    padding: 6px var(--space-3);
  }
}
