/* ─────────── settings rows ─────────── */
/* Not a field: a row that navigates somewhere, saying what the setting is now. */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem var(--pad);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
}
.setting-row:active { background: rgba(255, 255, 255, .04); }
.setting-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.setting-row .setting-name { flex: 1 1 auto; min-width: 0; font-size: 0.9375rem; color: var(--text); }
.setting-row .setting-name small {
  display: block;
  margin-top: 0.1875rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--faint);
  letter-spacing: .02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setting-row .setting-chevron { flex: 0 0 auto; color: var(--faint); }
.setting-row .setting-chevron .icon { font-size: 1.125rem; }
.setting-row.danger .setting-name { color: var(--unresolved); }
.build-line { padding: 1.125rem var(--pad) 0.5rem; font-family: var(--mono); font-size: 0.65625rem; color: var(--faint); letter-spacing: .03em; }
.build-line .build-env { color: var(--muted); }

/* ─────────── forms ─────────── */
/* One field shape everywhere: a label, its control, and any hint beneath.
 * Fields carry no outer spacing of their own — the form owns the rhythm — so a
 * field of any type sits correctly next to a field of any other, and nothing
 * can end up flush against its neighbour. */
.form { padding: 1.125rem var(--pad) 1.625rem; }
/* The form owns what sits between its fields — the gap and the rule — so every
 * form is separated the same way and no field can butt against its neighbour. */
.form > * + * { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
/* A checkbox, or any control that reads better beside its label than under it. */
.form-field.inline { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.form-field.inline label { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.field-pair { display: flex; gap: 0.375rem; align-items: center; }
.field-pair > * { flex: 1 1 0; min-width: 0; }
.form-field label { display: block; margin-bottom: 0.4375rem; }
.form-field input:not([type=checkbox]), .form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5625rem;
  padding: 0.6875rem 0.8125rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.96875rem;
  outline: none;
  caret-color: var(--accent);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }
.field-error { margin: 0.375rem 0 0; font-size: 0.78125rem; line-height: 1.5; color: var(--unresolved); }
/* a label for something that is not a form control */
.form-label { font-size: 0.9375rem; color: var(--text); margin-bottom: 0.4375rem; }
.suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.suggestion {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.25rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 0.4375rem 0.875rem;
  cursor: pointer;
}
.suggestion:active { background: var(--raised); }
.suggestion:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--line-strong); }
.form-field input:disabled { color: var(--faint); background: rgba(255, 255, 255, .02); }
.form-field input.mono { font-family: var(--mono); font-size: 0.84375rem; }
