/* ============================================================
   Feature · clientEdit
   ------------------------------------------------------------
   Every rule is scoped under `.feature-client-edit` so it
   never collides with styles.css / modernize.css / other
   features. Token-driven; no hard-coded color, spacing, or
   radius. Loaded after ui-primitives.css per
   migration/css-token-migration.md "Load order is the contract".

   The <form> itself uses `.ui-form` (Phase 13 form-shell
   extraction). This file holds only screen-level spacing +
   the field-pairing grid.

   Created by: Phase 13 — primitive stabilization editor.
   ============================================================ */

.feature-client-edit {
  padding: var(--space-6) 0 var(--space-10);
}

.feature-client-edit .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--space-4);
}

.feature-client-edit__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.feature-client-edit__state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

/* Pair of related fields rendered side-by-side on wide screens. On
   narrow screens they stack vertically (mobile-first). */
.feature-client-edit__pair {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .feature-client-edit {
    padding: var(--space-8) 0 var(--space-12);
  }

  .feature-client-edit__pair {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .feature-client-edit__pair > * {
    flex: 1 1 0;
    min-width: 0;
  }
}
