/* Private account profiles; no public directory contact data. */
.profile-sheet { display: flex; gap: 28px; align-items: flex-start; padding: 28px; }
.profile-sheet-main { flex: 1; min-width: 0; }
.profile-sheet h2 { margin: 0 0 10px; font-size: clamp(23px, 3vw, 30px); overflow-wrap: anywhere; }
.profile-sheet .profile-status { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; }
.profile-facts > div { min-width: 0; }
.profile-facts dt { font-size: 13px; font-weight: 700; color: var(--muted, #62736e); margin-bottom: 7px; }
.profile-facts dd { margin: 0; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.profile-facts .profile-wide { grid-column: 1 / -1; }
.profile-photo { flex: 0 0 auto; position: relative; display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #e0f0eb; color: #17675d; font-weight: 700; }
.profile-photo.large { width: 112px; height: 112px; font-size: 32px; box-shadow: 0 0 0 6px #f0f6f3; }
.profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-photo img[hidden] { display: none; }
.profile-photo .profile-initials { line-height: 1; }
.profile-contact-panel, .profile-avatar-panel { padding: 28px; }
.profile-contact-panel h3, .profile-avatar-panel h3 { margin: 0 0 10px; font-size: 22px; }
.profile-contact-panel p, .profile-avatar-panel p { line-height: 1.6; }
.profile-contact-panel form, .profile-editor { display: grid; gap: 20px; margin-top: 24px; }
.profile-contact-panel .field-label, .profile-editor .field-label { margin: 0; min-width: 0; }
.profile-contact-panel input, .profile-contact-panel textarea, .profile-editor input, .profile-editor textarea { width: 100%; min-height: 50px; padding: 13px 15px; font: inherit; border: 1px solid #d1ded8; border-radius: 12px; background: #fff; box-sizing: border-box; }
.profile-contact-panel input:focus, .profile-editor input:focus, .profile-contact-panel textarea:focus, .profile-editor textarea:focus { outline: 3px solid #bee0d6; outline-offset: 2px; border-color: #267d70; }
.profile-upload-controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.profile-file-picker { display: grid; gap: 10px; flex: 1; min-width: min(100%, 240px); font-weight: 700; }
.profile-file-picker input { font: inherit; font-weight: 400; width: 100%; min-height: 48px; padding: 8px; border: 1px dashed #b6cec3; border-radius: 12px; background: #f5f9f6; box-sizing: border-box; }
.profile-file-picker input::file-selector-button { min-height: 40px; font: inherit; border: 0; border-radius: 8px; padding: 8px 12px; margin-right: 10px; color: #155c51; background: #dfeee7; cursor: pointer; }
.profile-upload-controls .button, .profile-contact-panel .button, .profile-editor .button { min-height: 48px; }
.profile-feedback { min-height: 24px; margin: 16px 0 0; line-height: 1.5; font-size: 15px; color: #47655a; }
.profile-privacy { padding: 14px 18px; border-radius: 12px; background: #f2f6f2; color: #466357; font-size: 14px; line-height: 1.6; }
.profile-modal { max-width: 760px; }
.profile-modal .profile-sheet { padding: 0 0 28px; border-bottom: 1px solid #e0e9e3; }
.profile-modal .profile-avatar-panel { margin-top: 28px; padding: 24px; border: 1px solid #dce7df; border-radius: 16px; }
.profile-modal .profile-facts { gap: 20px; }
.profile-modal .modal-actions { gap: 14px; flex-wrap: wrap; }
.simple-team-person .profile-photo { width: 56px; height: 56px; font-size: 18px; }
@media (max-width: 700px) {
  .profile-sheet { gap: 22px; padding: 22px; flex-direction: column; }
  .profile-sheet-main { width: 100%; }
  .profile-facts { gap: 20px; grid-template-columns: 1fr; }
  .profile-facts .profile-wide { grid-column: auto; }
  .profile-photo.large { width: 96px; height: 96px; }
  .profile-contact-panel, .profile-avatar-panel { padding: 22px; }
  .profile-upload-controls { align-items: stretch; flex-direction: column; }
  .profile-upload-controls .button { width: 100%; }
  .profile-modal .profile-avatar-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .profile-photo, .profile-modal { transition: none; animation: none; } }

.modal-card.profile-modal-card { width: min(760px, calc(100vw - 40px)); max-width: 760px; }
@media (max-width: 700px) { .modal-card.profile-modal-card { width: calc(100vw - 28px); } }

/* Access controls are distinct from contact details and private sermon authorship. */
.user-access-panel { padding: 24px; margin: 28px 0; border: 1px solid #d1ded8; border-radius: 16px; background: #fbfcfa; }
.user-access-panel h3 { margin: 0 0 12px; font-size: 23px; }
.user-access-panel p { font-size: 16px; line-height: 1.6; }
.user-access-panel form { display: grid; gap: 20px; margin-top: 22px; }
.user-access-panel select, .profile-editor select { width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16px; border: 1px solid #b6cec3; border-radius: 12px; background: #fff; }
.user-permission-list { display: grid; gap: 12px; }
.user-permission-row { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 16px; border: 1px solid #dce7df; border-radius: 12px; background: #fff; font-size: 17px; line-height: 1.5; cursor: pointer; }
.user-permission-row input[type=checkbox] { width: 26px; height: 26px; min-height: 26px; flex: 0 0 26px; accent-color: #17675d; }
.user-permission-row small { display: block; color: #62736e; font-size: 14px; }
.user-access-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.user-access-actions button { min-height: 48px; }
.user-access-panel input:focus-visible, .user-access-panel select:focus-visible { outline: 3px solid #bee0d6; outline-offset: 3px; }
.profile-photo .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) { .user-access-panel { padding: 18px; } .user-access-actions { flex-direction: column; } .user-access-actions .button { width: 100%; } }
