/* Creator app (app.): sign-in/up, the forms list, the responses list. */

/* Auth pages: one column, one job, nothing else on the page. */
.auth {
  max-width: 32rem;
}

/* Forms list and responses list: a list of drawn rows, never a table,
   so phones get the same content without sideways scrolling. */
.rows {
  list-style: none;
  padding: 0;
  border-block-start: var(--border) solid var(--color-line);
}

.rows > li {
  max-width: none;
  border-block-end: var(--border) solid var(--color-line);
  padding-block: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  align-items: baseline;
  justify-content: space-between;
}

.row__main {
  flex: 1 1 20rem;
  min-width: 0;
}

.row__title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
}

.row__meta {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

/* Status in words, weight carries it; no colored badges. */
.status {
  font-weight: 700;
  color: var(--color-ink);
}

.row__side {
  flex: none;
  font-weight: 600;
}

/* Empty state: says what a form is and offers the one next step. */
.empty {
  border: var(--border) dashed var(--color-ink-soft);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
}

/* Form figures: a section label and its count per row, drawn like
   .rows; the count wraps under the label on a narrow phone. */
.tally {
  max-width: var(--measure);
  border-block-start: var(--border) solid var(--color-line);
}

.tally > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  justify-content: space-between;
  padding-block: var(--space-2);
  border-block-end: var(--border) solid var(--color-line);
}

.tally dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tally-heading {
  font-size: var(--text-base);
}

.breadcrumb {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* The form's public link, shown once published. Selectable text in a
   drawn box; copying is a progressive enhancement in the build. */
.share {
  border: var(--border) solid var(--color-ink);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.share__url {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  overflow-wrap: anywhere;
  padding: var(--space-1) var(--space-2);
  border: var(--border) solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-paper);
  user-select: all;
}

.form-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: flex-end;
  justify-content: space-between;
}

.form-head__title {
  flex: 1 1 24rem;
  min-width: 0;
}

/* After the trial (plan 0013): a band of words under the topbar on every
   app page, one link, no button, no color. */
.trial-banner {
  background: var(--color-paper-dim);
  border-block-end: var(--border) solid var(--color-ink);
  padding: var(--space-2) var(--space-3);
}

.trial-banner p {
  max-width: var(--measure-wide);
  margin-inline: auto;
}

/* The plan page: two drawn tiers, side by side when there is room. Not
   buttons: no fill, no hover, nothing to press. */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-3);
  max-width: var(--measure);
}

.plan {
  border: var(--border) solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.plan__price {
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.plan__price span {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-ink-soft);
}

/* The current plan once paid: ink edge, the words say it too. */
.plan--current {
  border-color: var(--color-ink);
}
