/* Apple original: Users/CurrentUser/NewUser/UserFormView.swift + EditUserForm_View.swift. Measured from the Catalyst app
   (2026-10-18), Mac points / 0.77: the sheet as Settings (447 x 493); a white bar 67 high with ↶ (centre 34 in) and SAVE
   (gold, 25 from the right); a white title band 53 high, the title 12.5 in; the grouped form below in light grey;
   rows 53.5 high, the label column 100 wide; the photo 100 x 100 rounded 10; the email row 67, button rows 40. */
.UserFormView {
  position: absolute; inset: 0; z-index: 85;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.2);
}
.UserFormView-sheet {
  position: relative; display: flex; flex-direction: column;
  width: 580.5px; height: 640.3px; max-width: calc(100% - 40px); max-height: calc(100% - 40px);
  border-radius: 26px; overflow: hidden;
  background: rgb(236, 236, 236);
  box-shadow: 0 0 0 0.65px rgba(0, 0, 0, 0.12), 0 20px 60px rgba(0, 0, 0, 0.25);
}
.UserFormView-bar {
  flex: none; height: 87px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 21px 0 21.1px; background: var(--systemBackground);
  border-bottom: 0.65px solid rgba(60, 60, 67, 0.12);
}
.UserFormView-back { padding: 10px; color: var(--titanium); }
.UserFormView-back .Icon { width: 26px; height: 26px; stroke-width: 1.2; }
.UserFormView-save { padding: 10px; font-size: 18px; font-weight: 300; color: var(--highlight); }
.UserFormView-title {
  flex: none; height: 68.8px; display: flex; align-items: center; padding: 0 16.2px;
  background: var(--systemBackground); box-shadow: 0 0.65px 0 rgba(60, 60, 67, 0.12);
  font-size: 17px; font-weight: 600; letter-spacing: 0.3px; color: var(--label);
  position: relative; z-index: 1;
}
.UserFormView-form { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 26px; }
.UserFormView-header { padding-top: 27.3px; }   /* 46 Mac pt from one group to the next */
.UserFormView-header:first-child { padding-top: 9px; }
.UserFormView-loader { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(255, 255, 255, 0.35); }
.UserFormView-loader[hidden] { display: none; }

/* Rows: label 100 wide then the value (the Mac's HStack), 53.5 Mac pt high */
.UserFormView-row { justify-content: flex-start; gap: 8px; min-height: 69.5px; }
.UserFormView-label { flex: none; width: 100px; font-size: 17px; color: var(--label); }
.UserFormView-input, .UserFormView-value {
  flex: 1; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; text-align: left;
  font-family: "ArchitectsDaughter", var(--ui); font-size: 19px; letter-spacing: 1.2px; color: var(--pen);
}
.UserFormView-input::placeholder, .UserFormView-value.placeholder { color: rgb(199, 199, 204); }
.UserFormView-value { cursor: pointer; }

/* The photo: 100 x 100, rounded 10, 24.7 above and below */
.UserFormView-row.photo { padding-top: 24.7px; padding-bottom: 23.4px; }
.UserFormView-photo { width: 100px; height: 100px; border-radius: 10px; overflow: hidden; flex: none; }
.UserFormView-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.UserFormView-photo img.avatar { object-fit: contain; }

/* The email: "Email:" and the address in the pen, the note under it */
.UserFormView-row.email { min-height: 87px; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-top: 21.9px; }
.UserFormView-email { display: flex; flex-direction: column; gap: 11.7px; }   /* the note 24 Mac pt under the email */
.UserFormView-emailLabel { font-size: 17px; color: var(--label); }
.UserFormView-pen { font-family: "ArchitectsDaughter", var(--ui); font-size: 19px; letter-spacing: 1.2px; color: var(--pen); }
.UserFormView-caption { line-height: 12px; font-size: 11px; letter-spacing: 0.3px; color: var(--titanium); }
.UserFormView-row.button { min-height: 52px; }
.UserFormView-red { font-size: 17px; color: rgb(235, 64, 52); text-align: left; padding: 0; }

/* Add New Crew's password rows: the box as the other rows (grey placeholder in the pen), the eye at the right */
.UserFormView-password { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.UserFormView-eye { flex: none; padding: 6px 0 6px 10px; color: var(--titanium); }
.UserFormView-eye .Icon { width: 22px; height: 22px; stroke-width: 1.1; }

/* The Crew Form Templates sheet (CrewFormTemplates.js, snag S8): the app's list rows under the sheet's title */
.CrewFormTemplates { position: relative; min-height: 120px; }
.CrewFormTemplates-sheet .UserFormView-sheet { background: var(--systemBackground); }   /* a white list, not the forms' grey (Barney) */
.CrewFormTemplates-loader { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.CrewFormTemplates-list { padding: 0 22px 0 18px; }
.CrewFormTemplates-empty { padding: 30px 4px; color: var(--titanium); font-size: 16px; font-weight: 300; }
