/* Unified relational content drawers and member directory. */
body.cf-overlay-open { overflow: hidden !important; }

.group-drawer:not(.church-space-drawer),
.cf-prayer-drawer,
.cf-member-drawer {
  width: min(640px, 100vw) !important;
  height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #11151d;
}

#announcementDrawerVisual,
#eventDrawerCover,
#groupDrawer .drawer-cover,
#appointmentDrawer .appointment-drawer-hero,
.cf-unified-hero {
  box-sizing: border-box;
  min-height: 240px !important;
  height: 240px;
  padding: 64px 30px 28px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image:
    radial-gradient(circle at 82% -8%, rgba(255,255,255,.11), transparent 42%),
    linear-gradient(145deg, #243c37, #806349);
  background-size: cover;
  background-position: center;
}

#groupDrawer .drawer-cover { flex-direction: row; align-items: flex-end; }
.cf-data-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-end !important;
}
#groupDrawer .drawer-cover {
  isolation: isolate;
}
.cf-data-hero::before,
#groupDrawer .drawer-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7,8,11,.08),
    rgba(7,8,11,.72) 78%,
    rgba(7,8,11,.92)
  );
}
.cf-data-hero > * { position: relative; z-index: 2; }
.cf-data-hero h2 {
  max-width: 560px;
  margin: 0 !important;
  font-family: "Manrope";
  font-size: clamp(28px, 4vw, 36px) !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.9px;
}
.cf-data-hero > p {
  max-width: 560px;
  margin: 8px 0 0 !important;
  overflow: hidden;
  color: rgba(237,243,239,.78);
  font-size: 11px !important;
  line-height: 1.55 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.cf-data-hero > p[hidden] { display: none; }
#announcementDrawerVisual.is-copy-below > .cf-unified-context[hidden],
#announcementDrawerVisual.is-copy-below > h2[hidden],
#announcementDrawerVisual.is-copy-below > p[hidden] { display: none !important; }

.group-drawer .drawer-close,
.cf-prayer-drawer .drawer-close,
.cf-member-drawer .drawer-close,
.cf-drawer-menu-trigger {
  /* Keep the close and overflow controls visually paired above any hero. */
  border-color: rgba(255,255,255,.14);
  background: rgba(8,9,12,.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.group-drawer .drawer-close,
.cf-prayer-drawer .drawer-close,
.cf-member-drawer .drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 12;
}

.cf-drawer-menu-trigger {
  position: absolute;
  top: 18px;
  right: 66px;
  z-index: 12;
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  padding: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}
.cf-drawer-menu-trigger::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor;
  transform: translate(-50%, -50%);
}
.cf-drawer-menu-trigger.is-visible { display: grid; }
.cf-drawer-menu {
  position: absolute;
  top: 62px;
  right: 66px;
  z-index: 13;
  min-width: 205px;
  padding: 6px;
  border: 1px solid #343a45;
  border-radius: 14px;
  background: #171b22;
  box-shadow: 0 20px 55px rgba(0,0,0,.42);
}
.cf-drawer-menu[hidden] { display: none; }
.cf-drawer-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  color: #e8e9ec;
  background: transparent;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}
.cf-drawer-menu button:hover,
.cf-drawer-menu button:focus-visible { background: rgba(255,255,255,.07); }
.cf-drawer-menu button.is-danger { color: #ff9d91; }

.cf-unified-context {
  display: block;
  margin: 0 0 8px;
  color: #e8d59f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.group-drawer .group-badge,
.content-card .group-badge,
.prayer-item > header,
.event-card .group-badge { display: none !important; }
.teaching-drawer-badges .soft-badge,
.appointment-kind,
.appointment-status {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(255,255,255,.72) !important;
  background: transparent !important;
}
#eventAdminActions,
.appointment-admin-row #editAppointmentButton,
.appointment-admin-row #cancelAppointmentButton,
#drawerSettingsButton { display: none !important; }

.teaching-edit-proxy { display: none !important; }

.announcement-drawer-body > #announcementDrawerBody[hidden] { display: none; }
.appointment-drawer-summary {
  padding: 18px 30px;
  border-bottom: 1px solid #242933;
  background: #11151d;
}
.appointment-drawer-summary .appointment-hero-top { margin: 0 0 12px; }
.appointment-drawer-summary .appointment-person { margin: 0; }
.appointment-drawer-summary .appointment-response-actions { margin-top: 14px; }

.cf-detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: #d9c994;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cf-prayer-body { padding: 26px 29px 48px; }
.cf-prayer-full-text {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #2d333d;
  border-radius: 12px;
  color: #d9dde4;
  background: rgba(255,255,255,.025);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.cf-prayer-full-text[hidden] { display: none; }
.cf-prayer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 22px;
}
.cf-prayer-meta > span {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid #2d333d;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.cf-prayer-meta small { color: #7f8793; font-size: 7px; text-transform: uppercase; }
.cf-prayer-meta strong { font-size: 10px; }
.cf-prayer-drawer h2,
.cf-member-drawer h2 { margin: 0 0 9px; font: 700 30px/1.15 "Manrope"; }
.cf-prayer-drawer .cf-unified-hero p,
.cf-member-drawer .cf-unified-hero p { max-width: 500px; margin: 0; color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.55; }

/* Prayer detail: author first, engaged people as a contact list, and one clear action. */
.cf-prayer-drawer .cf-prayer-body { padding-bottom: 112px; }
.cf-prayer-author-profile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(232, 212, 158, .22);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(232,212,158,.09), rgba(255,255,255,.024));
}
.cf-prayer-author-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #171916;
  background: linear-gradient(145deg, #ecdca9, #b98e6b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.27);
  font: 800 11px "Manrope";
}
.cf-prayer-author-copy { min-width: 0; display: grid; gap: 4px; }
.cf-prayer-author-copy small,
.cf-prayer-engagement-heading small { color: #9aa2ad; font: 700 8px/1.2 "DM Sans"; letter-spacing: .8px; text-transform: uppercase; }
.cf-prayer-author-copy strong { overflow: hidden; color: #f1f3f5; font: 800 12px/1.25 "Manrope"; text-overflow: ellipsis; white-space: nowrap; }
.cf-prayer-engagement { margin: 0; }
.cf-prayer-engagement-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 9px; }
.cf-prayer-engagement-heading > span { display: grid; gap: 4px; }
.cf-prayer-engagement-heading strong { color: #f1f3f5; font: 800 12px/1.2 "Manrope"; }
.cf-prayer-engagement-list { display: grid; gap: 8px; }
.cf-prayer-engagement-contact {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid #2d3540;
  border-radius: 13px;
  background: #141922;
}
.cf-prayer-engagement-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #171916;
  background: linear-gradient(145deg, #e8d59f, #ad8568);
  font: 800 10px "Manrope";
}
.cf-prayer-engagement-copy { min-width: 0; display: grid; gap: 3px; }
.cf-prayer-engagement-copy strong { overflow: hidden; color: #eef0f3; font: 800 11px/1.2 "Manrope"; text-overflow: ellipsis; white-space: nowrap; }
.cf-prayer-engagement-copy small { color: #939ca8; font: 600 8px/1.3 "DM Sans"; }
.cf-prayer-engagement-empty { padding: 14px; border: 1px dashed #313944; border-radius: 13px; color: #9ba3ae; background: rgba(255,255,255,.016); font-size: 9px; line-height: 1.45; }
.cf-prayer-quick-actions { position: fixed; z-index: 14; right: 27px; bottom: 26px; }
#prayerDetailPray.cf-prayer-pray-action {
  width: auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(245,247,250,.84);
  background: rgba(8,9,12,.62);
  box-shadow: 0 12px 28px rgba(0,0,0,.23);
  font: 800 10px "Manrope";
  transition: .18s ease;
}
#prayerDetailPray.cf-prayer-pray-action:hover { border-color: rgba(240,223,187,.42); color: var(--cream); background: rgba(255,255,255,.1); transform: translateY(-1px); }
#prayerDetailPray.cf-prayer-pray-action.is-engaged { color: var(--ink); border-color: var(--cream); background: var(--cream); }
#prayerDetailPray.cf-prayer-pray-action.is-engaged:hover { color: var(--ink); background: #f4e4b6; }
.cf-prayer-action__hands { width: 18px; height: 18px; flex: 0 0 auto; overflow: visible; color: currentColor; }
.cf-prayer-author-copy .cf-prayer-author-date { color: #aeb5be; font: 600 9px/1.3 "DM Sans"; letter-spacing: 0; text-transform: none; }

/* Prayer requests use one persisted destination: the whole church or one existing group. */
#prayerModal .modal > .eyebrow,
#prayerModal .modal > p { display: none !important; }
#prayerModal .modal form { margin-top: 16px; }
.cf-prayer-audience-select {
  display: grid !important;
  gap: 10px;
  margin: 0 0 17px !important;
  padding: 0;
  border: 0;
}
.cf-prayer-audience-select legend { margin: 0; color: #d7d8dc; font-size: 10px; font-weight: 700; }
.cf-prayer-audience-select select {
  width: 100%;
  min-height: 45px;
  padding: 0 38px 0 13px;
  border: 1px solid #343a45;
  border-radius: 11px;
  color: #f2f1eb;
  background: #0f1318;
  font: 600 11px "DM Sans";
  cursor: pointer;
}
.cf-prayer-audience-select select:focus-visible { outline: 2px solid #ead8a6; outline-offset: 2px; border-color: rgba(240,223,187,.72); }
.cf-prayer-request-form { display: grid; gap: 14px; }
.cf-prayer-request-form > .cf-prayer-audience-select { margin: 0 !important; }
.cf-prayer-request-form > .toggle-row { margin: 0 !important; }
.cf-prayer-request-field { display: grid !important; gap: 10px; margin: 0 !important; }
.cf-prayer-request-field > textarea { margin-top: 0 !important; }
.cf-prayer-anonymous-field {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.cf-prayer-anonymous-field > span { min-width: 0; }
.cf-prayer-anonymous-field strong { color: #f5f6f7; font: 800 10px/1.3 "DM Sans"; }
.cf-prayer-anonymous-field > input[type="checkbox"] {
  width: 38px !important;
  min-width: 38px;
  height: 22px;
  margin: 0 0 0 auto;
  padding: 3px !important;
  box-sizing: border-box;
  appearance: none;
  border: 0 !important;
  border-radius: 999px !important;
  background: #383b43 !important;
  cursor: pointer;
}
.cf-prayer-anonymous-field > input[type="checkbox"]::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a8abb3;
  transition: transform .2s ease, background .2s ease;
}
.cf-prayer-anonymous-field > input[type="checkbox"]:checked { background: #ecdba9 !important; }
.cf-prayer-anonymous-field > input[type="checkbox"]:checked::before { transform: translateX(16px); background: #1b1c19; }
.cf-prayer-anonymous-field > input[type="checkbox"]:focus-visible { outline: 2px solid #ead8a6; outline-offset: 3px; }
#prayerForm > .cf-prayer-submit { justify-self: end; width: auto; margin-top: 2px; }

.cf-announcement-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.cf-announcement-date-range label { margin: 0 !important; }
.cf-announcement-date-range input[type="date"] { min-height: 43px; }
@media (max-width: 720px) {
  .cf-prayer-drawer .cf-prayer-body { padding: 21px 18px 108px; }
  .cf-prayer-quick-actions { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); }
  .cf-announcement-date-range { grid-template-columns: 1fr; }
}

.cf-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4,5,8,.78);
  backdrop-filter: blur(10px);
}
.cf-editor-overlay[hidden] { display: none; }
.cf-editor-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow: auto;
  padding: 31px;
  border: 1px solid var(--line-strong);
  border-radius: 23px;
  background: #15171c;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
  animation: modalIn .25s ease both;
}
.cf-editor-dialog:has(.app-select.open) { overflow: visible; }
.cf-editor-dialog header { display: block; min-height: 34px; margin-bottom: 22px; padding-right: 46px; }
.cf-editor-dialog h2 { margin: 4px 0 0; font: 700 24px/1.25 "Manrope"; letter-spacing: -.7px; }
.cf-editor-dialog header button {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(12,13,17,.78);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cf-editor-dialog form { display: grid; gap: 14px; }
.cf-editor-dialog .cf-prayer-request-form { gap: 12px; }
.cf-editor-dialog label { display: grid; gap: 7px; color: #b9bec7; font-size: 9px; font-weight: 700; }
.cf-editor-dialog input,
.cf-editor-dialog textarea,
.cf-editor-dialog select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #343a45;
  border-radius: 11px;
  color: #f2f1eb;
  background: #0f1318;
  font: 500 11px/1.5 "DM Sans";
}
.cf-editor-dialog textarea { min-height: 120px; resize: vertical; }
.cf-editor-dialog textarea.cf-announcement-editor-description {
  min-height: 62px;
  height: 62px;
}
.cf-editor-dialog textarea.cf-announcement-editor-message { min-height: 148px; }
.cf-editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 7px; }
.cf-editor-dialog .cf-announcement-placement { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.cf-editor-dialog .cf-announcement-placement legend { color: #dfe3ea; font-size: 10px; font-weight: 700; }
.cf-editor-dialog .cf-announcement-placement > span { color: #9299a5; font-size: 9px; line-height: 1.45; }
.cf-editor-dialog .cf-announcement-placement__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-editor-dialog .cf-announcement-placement__choices label { position: relative; display: block; cursor: pointer; }
.cf-editor-dialog .cf-announcement-placement__choices label:last-child { grid-column: 1 / -1; }
.cf-editor-dialog .cf-announcement-placement__choices input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.cf-editor-dialog .cf-announcement-placement__choices label span { min-height: 60px; display: grid; align-content: center; gap: 4px; padding: 10px; border: 1px solid #333a46; border-radius: 10px; background: #11151b; }
.cf-editor-dialog .cf-announcement-placement__choices label strong { color: #edf0f4; font-size: 10px; }
.cf-editor-dialog .cf-announcement-placement__choices label small { color: #8e96a2; font-size: 8px; line-height: 1.35; }
.cf-editor-dialog .cf-announcement-placement__choices input:checked + span { border-color: rgba(240,223,187,.72); background: rgba(240,223,187,.08); box-shadow: inset 0 0 0 1px rgba(240,223,187,.14); }
.cf-editor-dialog .cf-announcement-placement__choices input:focus-visible + span { outline: 2px solid #ead8a6; outline-offset: 2px; }

/* Members page */
#page-groups.cf-members-page { padding-bottom: 80px; }
.cf-members-shell { display: grid; gap: 22px; }
.cf-members-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 26px 28px;
  border: 1px solid #252b34;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 0, rgba(229,205,151,.13), transparent 32%),
    linear-gradient(145deg, #141a20, #11151a);
}
.cf-members-hero .eyebrow { margin-bottom: 8px; }
.cf-members-hero h1 { margin: 0 0 7px; font: 700 30px/1.15 "Manrope"; }
.cf-members-hero p { max-width: 620px; margin: 0; color: #939aa5; font-size: 11px; line-height: 1.6; }
.cf-members-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.cf-context-control {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 420px);
  gap: 13px;
  align-items: center;
}
.cf-context-select,
.cf-member-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #2a303a;
  border-radius: 13px;
  background: #12161c;
}
.cf-context-select select,
.cf-member-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #eef0f2;
  background: transparent;
  font: 600 11px "DM Sans";
}
.cf-member-search svg,
.cf-context-select svg { width: 17px; color: #ddc98f; }

.cf-members-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid #252b34;
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}
.cf-members-summary__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #161812;
  background: #e8d49e;
  font: 800 13px "Manrope";
}
.cf-members-summary > span:nth-child(2) { display: grid; gap: 3px; }
.cf-members-summary strong { font-size: 13px; }
.cf-members-summary small { color: #838b97; font-size: 9px; }
.cf-members-summary em { margin-left: auto; color: #d7c48f; font-size: 9px; font-style: normal; }

.cf-member-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.cf-member-filters button {
  padding: 8px 11px;
  border: 1px solid #2a3039;
  border-radius: 999px;
  color: #8f97a2;
  background: #12161b;
  font-size: 9px;
  cursor: pointer;
}
.cf-member-filters button.active { border-color: #dfcb92; color: #171815; background: #e8d49e; }

.cf-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 11px;
}
.cf-member-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #272d36;
  border-radius: 16px;
  color: inherit;
  background: #13171d;
  text-align: left;
  cursor: pointer;
}
.cf-member-card:hover,
.cf-member-card:focus-visible { border-color: #4b5360; background: #161b22; outline: 0; }
.cf-member-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #151713;
  background: linear-gradient(145deg,#e8d59f,#ad8568);
  font: 800 12px "Manrope";
}
.cf-member-card__copy { min-width: 0; display: grid; gap: 4px; }
.cf-member-card__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.cf-member-card__copy small { color: #7f8792; font-size: 8px; }
.cf-member-card__groups { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.cf-member-card__groups span { color: #b4bac3; font-size: 7px; }
.cf-member-card__state { color: #dac891; font-size: 8px; }

/* The member directory intentionally stays focused on its compact people list. */
.cf-members-shell { gap: 0; }
.cf-member-view-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid #2b313a;
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}
.cf-member-view-tabs[hidden] { display: none; }
.cf-member-view-tabs button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  color: #858d99;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}
.cf-member-view-tabs button:hover,
.cf-member-view-tabs button:focus-visible { color: #eceef0; background: rgba(255,255,255,.035); }
.cf-member-view-tabs button.active { color: #f0f1f2; background: #252b36; }
.cf-member-view-count {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #bfc4cb;
  background: rgba(255,255,255,.075);
  font-size: 8px;
  font-weight: 800;
}
.cf-member-view-count--alert {
  color: #211310;
  background: #e58f75;
  box-shadow: 0 0 0 3px rgba(229,143,117,.08);
}
.cf-member-view-count[hidden] { display: none; }
.cf-church-invitations {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.cf-church-invitations[hidden] { display: none; }
.cf-church-invitations__list { display: grid; gap: 8px; }
.cf-church-invitation {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 11px 13px;
  border: 1px solid #2a3039;
  border-radius: 13px;
  color: inherit;
  background: #12161c;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, opacity .16s ease;
}
.cf-church-invitation:hover { border-color: rgba(232,212,158,.48); background: #151a21; }
.cf-church-invitation:hover .cf-church-invitation__copy strong { color: #e8d49e; }
.cf-church-invitation:focus-visible { outline: 2px solid #e8d49e; outline-offset: 3px; }
.cf-church-invitation__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #191a17;
  background: #e8d49e;
}
.cf-church-invitation__icon svg { width: 16px; height: 16px; }
.cf-church-invitation__copy { min-width: 0; display: grid; gap: 4px; }
.cf-church-invitation__copy strong { overflow: hidden; color: #edf0f2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cf-church-invitation__copy > span { margin: 0; color: #858d98; font-size: 8px; }
.cf-church-invitation__chevron { color: #8f97a2; font-size: 22px; line-height: 1; }
.cf-invitations-empty { padding: 18px 13px; color: #8c949f; }
.cf-invitations-empty strong { display: block; color: #c6cbd1; font-size: 10px; }
.cf-invitations-empty p { margin: 5px 0 0; font-size: 9px; }
#pageCreateFab > .cf-member-invitation-fab svg { display: block; width: 21px; height: 21px; }
#pageCreateFab > .cf-member-invitation-fab::after { display: none; }
.topbar .church-menu .context-menu__create-group {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 9px 12px;
  border: 1px solid #353b45;
  border-radius: 10px;
  color: #171815;
  background: #e8d49e;
  font: 800 10px "DM Sans";
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.topbar .church-menu .context-menu__create-group:hover { background: #f1dfad; transform: translateY(-1px); }
.topbar .church-menu .context-menu__create-group:focus-visible { outline: 2px solid #ead8a6; outline-offset: 2px; }
.topbar .church-menu .context-menu__create-group svg { width: 15px; height: 15px; }
.cf-member-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cf-member-card {
  min-height: 72px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
}
.cf-member-avatar { width: 38px; height: 38px; font-size: 10px; }
.cf-member-card__copy { gap: 2px; }
.cf-member-card__copy strong { font-size: 10px; }
.cf-member-card__copy small { font-size: 8px; }
.cf-member-card__groups { grid-column: auto; min-width: 0; gap: 4px; margin-top: 1px; }
.cf-member-card__groups span { font-size: 7px; }

.cf-members-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 30px;
  border: 1px dashed #303742;
  border-radius: 18px;
  color: #8c949f;
  text-align: center;
}
.cf-members-error { padding: 13px 15px; border: 1px solid rgba(220,110,94,.4); border-radius: 12px; color: #ffaaa0; background: rgba(130,50,42,.12); font-size: 10px; }

.cf-member-drawer .cf-member-profile { padding: 25px 28px 50px; }
.cf-member-profile__groups { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.cf-member-profile__groups span { padding: 7px 9px; border: 1px solid #303640; border-radius: 999px; color: #b8bec6; font-size: 8px; }

/* Contact-style member directory */
.cf-member-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  width: 100%;
}
.cf-member-card {
  min-height: 76px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 14px;
}
.cf-member-card:hover,
.cf-member-card:focus-visible {
  border-color: rgba(232, 212, 158, .52);
  background: #171c23;
}
.cf-member-avatar {
  width: 44px;
  height: 44px;
  font-size: 11px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13);
}
.cf-member-card__copy {
  gap: 3px;
  align-content: center;
}
.cf-member-card__copy strong {
  color: #f2f3f4;
  font: 800 12px/1.2 "Manrope";
}
.cf-member-card__copy small {
  color: #a4abb5;
  font: 600 9px/1.35 "DM Sans";
}
.cf-member-card__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1px;
}
.cf-member-card__groups span {
  color: #d1c08f;
  font: 600 8px/1.35 "DM Sans";
}
.cf-member-card__groups span + span::before {
  content: "·";
  margin: 0 5px;
  color: #67717d;
}
.cf-member-card__state {
  align-self: center;
  white-space: nowrap;
  color: #d9c68f;
  font: 700 8px "DM Sans";
}

.cf-member-profile__groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 13px 0 21px;
}
.cf-member-profile__groups span {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  padding: 11px 14px 22px 60px;
  border-color: #303843;
  border-radius: 13px;
  color: #edf0f2;
  background: #141922;
  font: 800 11px/1.25 "Manrope";
}
.cf-member-profile__groups span::before {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(232,212,158,.42);
  border-radius: 11px;
  color: #191b18;
  background: linear-gradient(145deg, #ecdba9, #ba936f);
  font: 800 15px/1 "Manrope";
}
.cf-member-profile__groups span::after {
  content: "Groupe partagé";
  position: absolute;
  bottom: 8px;
  left: 60px;
  color: #8f98a4;
  font: 600 8px/1 "DM Sans";
}
.cf-member-private-fields {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
}
.cf-member-private-field {
  padding: 12px 0 13px;
  border: 0;
}
.cf-member-private-field + .cf-member-private-field { border-top: 1px solid #2b313a; }
.cf-member-private-field dt {
  margin: 0 0 5px;
  color: #7f8792;
  font: 600 8px/1.35 "DM Sans";
}
.cf-member-private-field dt span {
  display: inline-block;
  margin-left: 4px;
  color: #69727e;
}
.cf-member-private-field dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #edf0f2;
  font: 700 10px/1.35 "DM Sans";
}
.cf-member-admin-actions { display: grid; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #2b313a; }
.cf-member-admin-actions button { min-height: 42px; }

/* Hide scrollbars without changing overflow: wheel and touch scrolling stay intact. */
html, body, body * {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
html::-webkit-scrollbar,
body *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.cf-discovery-grid { display: grid; gap: 9px; margin-top: 18px; }
.cf-discovery-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 13px; border: 1px solid #2b313a; border-radius: 14px; }
.cf-discovery-item p { margin: 4px 0 0; color: #818995; font-size: 8px; }
.cf-discovery-item button { min-height: 36px; }

.cf-invite-result {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid #3a414c;
  border-radius: 13px;
  background: #0f1318;
}
.cf-invite-result code { overflow-wrap: anywhere; color: #dfce9c; font-size: 9px; }

.cf-church-invitation-form { display: grid; gap: 15px; }
.cf-church-invitation-form label small { display: inline; margin-left: 4px; color: #7f8792; font-weight: 500; }
.cf-editor-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.cf-editor-form-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cf-invitation-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #303640;
  border-radius: 13px;
  background: #0f1318;
}
.cf-invitation-mode-tabs button {
  min-height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  color: #8e96a2;
  background: transparent;
  font: 700 10px "DM Sans";
  cursor: pointer;
}
.cf-invitation-mode-tabs button[aria-selected="true"] { color: #f0f1ed; background: #29313e; }
.cf-invitation-mode-tabs button:focus-visible { outline: 2px solid #e8d49e; outline-offset: 2px; }
.cf-invitation-mode-panel { display: grid; gap: 13px; }
.cf-invitation-mode-panel[hidden] { display: none; }
.cf-invitation-member-results {
  max-height: 184px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  padding-right: 3px;
}
.cf-invitation-member-results > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 9px 10px;
  border: 1px solid #2e3540;
  border-radius: 10px;
  color: #edf0f2;
  background: #11161c;
  text-align: left;
  cursor: pointer;
}
.cf-invitation-member-results > button[aria-selected="true"] { border-color: #dcca94; background: rgba(232,212,158,.09); }
.cf-invitation-member-results > button > span { grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #161719; background: #e8d49e; font-size: 9px; font-weight: 800; }
.cf-invitation-member-results strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cf-invitation-member-results small { overflow: hidden; color: #89919d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.cf-invitation-member-results > p,
.cf-invitation-empty-note { margin: 0; padding: 12px; border: 1px dashed #343b46; border-radius: 10px; color: #9299a5; font-size: 9px; line-height: 1.5; }
.cf-invitation-group-field,
.cf-invitation-group-field > .app-select { width: 100%; }
.cf-invitation-group-role-field[hidden] { display: none !important; }
.cf-link-usage-fields { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 9px; }
.cf-link-usage-fields.has-custom-limit { grid-template-columns: minmax(0, 1fr) 43px; }
.cf-link-max-uses { position: relative; width: 43px; align-self: end; }
.cf-link-max-uses[hidden] { display: none; }
.cf-link-max-uses > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cf-editor-dialog .cf-link-max-uses input { width: 43px; height: 43px; min-height: 43px; padding: 0 3px; text-align: center; }
.cf-church-invitation-form__hint { margin: -3px 0 0; color: #9299a5; font-size: 9px; line-height: 1.5; }
.cf-church-invitation-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 13px 18px;
  padding: 16px;
  border: 1px solid rgba(232,212,158,.34);
  border-radius: 14px;
  background: #0f1318;
}
.cf-church-invitation-result[hidden] { display: none; }
.cf-invitation-result__heading { display: grid; align-content: start; gap: 5px; }
.cf-invitation-result__heading strong { color: #edf0f2; font: 800 13px/1.3 "Manrope"; }
.cf-invitation-qr { grid-row: 1 / span 3; grid-column: 2; align-self: start; display: grid; gap: 8px; width: 176px; }
.cf-invitation-qr img { display: block; width: 176px; height: 176px; border-radius: 10px; background: #fff; }
.cf-invitation-qr__download { width: 100%; min-height: 37px; padding-inline: 8px; border-color: var(--cream); color: var(--ink); background: var(--cream); font-size: 9px; text-decoration: none; }
.cf-invitation-qr__download svg { flex: 0 0 auto; width: 14px; height: 14px; }
.cf-invitation-qr__download:hover,
.cf-invitation-secret-share:hover { border-color: var(--cream-strong); color: var(--ink); background: var(--cream-strong); }
.cf-invitation-qr__download:focus-visible,
.cf-invitation-secret-share:focus-visible { outline: 2px solid var(--cream-strong); outline-offset: 3px; }
.cf-invitation-secret-row { min-width: 0; display: grid; gap: 5px; color: #c7cdd4; font-size: 9px; font-weight: 700; }
.cf-invitation-secret-row--link { align-self: end; }
.cf-invitation-secret-row > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.cf-invitation-secret-row--link > div { align-items: end; }
.cf-church-invitation-result code { overflow-wrap: anywhere; color: #dfce9c; font: 700 9px/1.45 ui-monospace, monospace; }
.cf-invitation-secret-share { width: 37px; min-width: 37px; height: 37px; min-height: 37px; padding: 0; border-color: var(--cream); color: var(--ink); background: var(--cream); }
.cf-invitation-secret-share svg { width: 16px; height: 16px; }
.cf-invitation-details { display: grid; gap: 16px; }
.cf-invitation-details > .cf-editor-actions,
.cf-church-invitation-form > .cf-editor-actions {
  width: 50%;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  justify-self: end;
}
.cf-invitation-details > .cf-editor-actions > button,
.cf-church-invitation-form > .cf-editor-actions > button { width: 100%; min-width: 0; padding-inline: 8px; }
.cf-church-invitation-form > .cf-editor-actions > button { white-space: normal; line-height: 1.15; text-align: center; }
.cf-invitation-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.cf-invitation-details dl > div { min-width: 0; display: grid; gap: 5px; padding: 11px; border: 1px solid #2d343e; border-radius: 10px; background: #10151b; }
.cf-invitation-details dl > .cf-invitation-details__creator { grid-column: 1 / -1; }
.cf-invitation-details dt { color: #868f9b; font-size: 8px; font-weight: 700; }
.cf-invitation-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #edf0f2; font-size: 10px; font-weight: 700; }
.cf-invitation-details section:not(.cf-church-invitation-result) { display: grid; gap: 7px; }
.cf-invitation-details ul { margin: 0; padding-left: 18px; color: #bbc1c9; font-size: 9px; }
.cf-invitation-revoke-confirm { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 12px; border: 1px solid rgba(233,154,142,.3); border-radius: 10px; color: #d8a29a; background: rgba(233,154,142,.06); font-size: 9px; line-height: 1.45; }
.cf-invitation-revoke-confirm[hidden] { display: none; }
.cf-invitation-revoke-confirm button { margin-left: auto; padding: 6px 8px; border: 0; color: #edf0f2; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.cf-invitation-revoke-confirm button:focus-visible { outline: 2px solid #e8d49e; outline-offset: 2px; }
.cf-danger-button { color: #e99a8e !important; border-color: rgba(233,154,142,.35) !important; }

@media (max-width: 720px) {
  .group-drawer:not(.church-space-drawer),
  .cf-prayer-drawer,
  .cf-member-drawer { width: 100vw !important; border-left: 0; }
  #announcementDrawerVisual,
  #eventDrawerCover,
  #groupDrawer .drawer-cover,
  #appointmentDrawer .appointment-drawer-hero,
  .cf-unified-hero { min-height: 230px !important; height: auto; padding: 66px 19px 23px !important; }
  .cf-data-hero h2 { font-size: 27px !important; }
  .appointment-drawer-summary { padding: 16px 19px; }
  .cf-members-hero { grid-template-columns: 1fr; padding: 21px 18px; }
  .cf-members-actions { justify-content: flex-start; }
  .cf-context-control { grid-template-columns: 1fr; }
  .cf-member-view-tabs { gap: 3px; padding: 4px; }
  .cf-member-view-tabs button { gap: 5px; padding-inline: 4px; }
  .cf-editor-form-row { grid-template-columns: 1fr; }
  .cf-church-invitation-result { grid-template-columns: 1fr; }
  .cf-invitation-qr { grid-row: auto; grid-column: auto; justify-self: center; }
  .cf-member-grid { grid-template-columns: 1fr; }
  .cf-drawer-menu { right: 17px; }
}

@media (max-width: 650px) {
  .cf-editor-dialog { padding: 24px 18px; border-radius: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .group-drawer,
  .drawer-backdrop,
  .cf-editor-overlay { transition: none !important; }
}
