/* plans screens — rules that only these screens need. Shared components live in app.css. */
/* automation: one condition or action per row — what | details | remove */
.rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: var(--s3);
  align-items: start; /* what stands beside several fields stands beside the first */
  padding: var(--s3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}
.rule-row > :last-child {
  margin-top: calc(24px + var(--s1)); /* the remove button: beside the control, below its label */
}
@media (max-width: 767.98px) {
  .rule-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .rule-row > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
