/* Cadastro com a proporção e organização da referência. */
.shell #page-member-create { padding-top: 12px; }
.member-toolbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 12px; min-height: 54px; padding: 12px 16px; margin-bottom: 12px; }
.shell .member-toolbar h1 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.member-back { padding: 0; background: transparent; border: 0; color: var(--text); width: 12px; height: 22px; display: grid; place-items: center; }
.member-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.member-stage-status { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 9px; }
.shell #member-steps { display: flex; gap: 3px; margin: 0; }
.shell #member-steps li { width: 26px; height: 6px; padding: 0; border: 0; border-radius: 4px; background: var(--line); font-size: 0; }
.shell #member-steps li.current, .shell #member-steps li.completed { background: var(--orange); }
.shell #member-form .card { border: 0; padding: 16px; border-radius: 12px; }
.shell #member-form .section-title { gap: 0; padding-bottom: 12px; margin-bottom: 18px; }
.shell #member-form .section-title h2, .shell #member-form .function-card > h2 { font-size: 12px; font-weight: 600; }
.shell #member-form .section-title h2::before, .shell #member-form .function-card > h2::before { content: ''; display: inline-block; width: 7px; height: 13px; border-radius: 5px; margin-right: 6px; background: var(--orange); vertical-align: -2px; }
.shell #member-form .field-grid { gap: 18px 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shell #member-form label, .shell #member-form .boolean-field, .shell #member-form .choice-field { font-size: 10px; font-weight: 400; margin: 0; }
.shell #member-form input:not([type=checkbox]), .shell #member-form select, .shell #member-form .member-church { height: 28px; margin-top: 6px; padding: 5px 10px; font-size: 10px; font-weight: 400; border-radius: 6px; }
.shell #member-form .member-church { line-height: 16px; }
.shell #member-form textarea { height: 80px; min-height: 80px; margin-top: 6px; font-size: 10px; padding: 8px 10px 24px; resize: vertical; }
.shell #member-form textarea[name=entry_notes] { height: 80px; min-height: 80px; }
.shell #member-form .boolean-choices { margin-top: 6px; border-radius: 5px; }
.shell #member-form .boolean-choices button { font-size: 9px; padding: 4px 6px; line-height: 1.3; }
.shell #member-form .function-card { margin-top: 18px; }
.shell #member-form .function-card > h2 { padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.shell #member-form .function-row { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.shell #member-form .function-row > button { justify-self: end; background: transparent; border: 1px solid var(--orange); color: var(--orange); min-height: 26px; padding: 4px 8px; font-size: 10px; }
.shell #member-form .function-tags:empty { display: none; }
.shell #member-form .registration-actions { border: 0; padding: 12px 0 0; }
.shell #member-progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.shell #member-form .registration-buttons { gap: 18px; }
.shell #member-prev { background: transparent; border: 0; padding: 7px 8px; color: var(--text); font-size: 11px; }
.shell #member-next, .shell #member-save { background: var(--orange); color: #251309; border: 0; border-radius: 6px; min-width: 80px; height: 32px; padding: 7px 12px; font-size: 11px; font-weight: 400; }
.shell #member-next:disabled { background: var(--line); color: var(--muted); cursor: default; opacity: .65; }
.counted-field { position: relative; }
.shell #member-form .counted-field input, .shell #member-form .counted-field textarea { padding-right: 52px; }
.field-count { position: absolute; right: 10px; bottom: 8px; font-size: 9px; color: var(--muted); pointer-events: none; }
.shell #member-form .counted-field:has(textarea) .field-count { left: 10px; right: auto; bottom: 10px; }
.shell #member-form .counted-field textarea { padding-right: 10px; }
.member-field-divider { grid-column: 1 / -1; width: 100%; border: 0; border-top: 1px solid var(--line); margin: 4px 0 12px; }
.shell #member-form [data-stage="1"] [data-field="marital_status"], .shell #member-form [data-stage="3"] [data-field="is_baptized"] { grid-column: 1; }
.shell #member-form [data-stage="3"] [data-field="area"] { grid-column: 1; }
.shell #member-form [data-stage="2"] .postcode-control { display: block; margin-top: 6px; }
.shell #member-form [data-stage="2"] .postcode-control input { margin-top: 0; width: 100%; }
.shell #member-form [data-stage="2"] #member-cep-search { display: none; }
.shell #member-form [data-stage="2"] .postcode-message:empty { display: none; }
.shell #member-form [data-stage="2"] [data-field="city"] .field-count { display: none; }
@media(max-width:850px) {
  .shell #member-form .field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .member-toolbar { flex-wrap: wrap; gap: 6px; padding: 12px; }
  .member-stage-status { gap: 4px; font-size: 8px; }
  .shell #member-steps li { width: 16px; }
  .shell #member-form .field-grid, .shell #member-form .function-row { grid-template-columns: 1fr; gap: 14px; }
  .shell #member-form label, .shell #member-form .boolean-field, .shell #member-form .choice-field { font-size: 11px; }
  .shell #member-form input:not([type=checkbox]), .shell #member-form select, .shell #member-form textarea { font-size: 16px; height: 38px; }
  .shell #member-form textarea, .shell #member-form textarea[name=entry_notes] { height: 96px; min-height: 96px; }
  .shell #member-form .member-church { height: 38px; padding-top: 10px; font-size: 12px; }
  .shell #member-form .boolean-choices button { font-size: 11px; padding: 7px 10px; }
  .shell #member-form .registration-actions { flex-direction: row; align-items: center; }
  .shell #member-form .registration-buttons .primary { flex: none; }
}
