/* Group leftovers in design v3 (includes/pages/groups-extra.php, extra pages groups-extra lane, 15 Oct).
   body.ld-gx--sub: a group's BuddyBoss screen (members, photos, invite, admin...) under the compact v3 group bar and the group page's tab strip.
   body.ld-gx--create: Create a group. body.ld-gx--media: the Photos, Videos and Documents directories.
   Tokens are the v3 set of community-v3.css (.ld-comm): page #f5f6f9, line #e4e7ef, midnight #0a0e24, electric #3d63ff, muted #667089, 12px rows. */
body.ld-gx { --gx-page:#f5f6f9; --gx-line:#e4e7ef; --gx-ink:#0d1224; --gx-mid:#0a0e24; --gx-blue:#3d63ff; --gx-muted:#667089; --gx-tint:#eef1f7; --gx-r:12px; }

/* ===== the group bar ===== */
body.ld-gx--sub #item-header, body.ld-gx--sub .bp-wrap > #object-nav, body.ld-gx--sub .bp-wrap > nav.main-navs, body.ld-gx--sub #item-nav { display: none !important; }
body.ld-gx--sub #primary { padding-top: 0; }
.ld-comm.ldx { background: transparent; margin-bottom: 0; }
.ldx-h { background: linear-gradient(180deg, #0a0e24 0%, #141a66 100%); color: #fff; }
.ldx-w { box-sizing: border-box; display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 14px 16px; min-width: 0; }
.ldx-back { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; transition: background .15s, transform .15s; }
.ldx-back:hover { background: rgba(255,255,255,.18); }
.ldx-back:active { transform: scale(.95); }
.ldx-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ldx-av { flex: none; display: block; width: 44px; height: 44px; }
.ldx-av img { display: block; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; }
.ldx-t { flex: 1 1 auto; min-width: 0; }
.ld-comm .ldx-in { display: block; margin: 0 0 2px; font: 600 12.5px/1.3 var(--ld-text); color: rgba(255,255,255,.66); text-decoration: none; overflow-wrap: anywhere; }
.ld-comm .ldx-in:hover { color: #fff; }
.ld-comm .ldx-n { display: block; font: 800 17.5px/1.2 var(--ld-display); letter-spacing: -.01em; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.ldx-k { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 4px 0 0; font: 500 12.5px/1.35 var(--ld-text); color: rgba(255,255,255,.7); }
.ldx-k span { display: inline-flex; align-items: center; gap: 5px; }
.ldx-k .i { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ldx-a { flex: none; }
.ld-comm .ldx-a .ld-btn { height: 36px; padding: 0 14px; font-size: 14px; gap: 6px; }
.ld-comm .ldx-a .ld-btn .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 901px) {
	.ldx-w { gap: 16px; padding: 20px 40px; }
	.ldx-av, .ldx-av img { width: 56px; height: 56px; border-radius: 12px; }
	.ld-comm .ldx-n { font-size: 24px; }
	.ldx-k { font-size: 13.5px; }
	.ld-comm .ldx-a .ld-btn { height: 40px; padding: 0 18px; }
}

/* ===== tab strip: the group page's own (community-v3.css .ld-tabs), links here; the screen's tab underlined ===== */
.ld-comm.ldx .ld-tabs a.ldgx-tab small { display: inline; margin-left: 4px; font-weight: 500; color: var(--ld-muted); }
.ld-comm.ldx .ld-tabs a.ldgx-tab.is-on { color: var(--ld-ink); border-bottom-color: var(--ld-midnight); }
@media (max-width: 900px) { .ld-comm.ldx .ld-tabs a.ldgx-tab { padding: 13px 11px; font-size: 14.5px; } }

/* ===== the screen under the bar: one column on the v3 page, BuddyBoss's own markup ===== */
body.ld-gx--sub, body.ld-gx--media { background: var(--gx-page); }
body.ld-gx--sub .bp-wrap { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 16px 16px 120px; background: transparent; }
body.ld-gx--sub .bb-profile-grid { display: block; margin: 0; }
body.ld-gx--sub #item-body { box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; color: var(--gx-ink); font: 400 15px/1.5 var(--ld-text); }
body.ld-gx--sub #secondary, body.ld-gx--sub #group-activity { display: none; }
@media (min-width: 901px) { body.ld-gx--sub .bp-wrap { padding: 28px 40px 80px; } }

/* type: one scale with the group page (heavy display titles, Inter body) */
body.ld-gx #item-body h2.bb-title, body.ld-gx #item-body .bp-screen-title, body.ld-gx #item-body h2, body.ld-gx #item-body h3.bp-screen-title { margin: 0 0 12px; font: 800 20px/1.2 var(--ld-display); letter-spacing: -.01em; color: var(--gx-mid); text-shadow: none; }
body.ld-gx #item-body h4 { font: 700 15px/1.3 var(--ld-text); color: var(--gx-ink); }
body.ld-gx .bb-item-count { margin: 0 0 12px; font: 600 14px/1.3 var(--ld-text); color: var(--gx-muted); }
body.ld-gx .bb-item-count .bb-count { color: var(--gx-ink); font-weight: 700; }

/* sub tabs (Send invites / Pending invites, Manage's screens): segmented pills */
body.ld-gx #item-body #subnav { margin: 0 0 16px; padding: 0; border: 0; background: none; }
body.ld-gx #item-body #subnav ul { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; list-style: none; border: 0; }
body.ld-gx #item-body #subnav ul::-webkit-scrollbar { display: none; }
body.ld-gx #item-body #subnav li { flex: none; margin: 0; padding: 0; border: 0; list-style: none; }
body.ld-gx #item-body #subnav li a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); color: var(--gx-ink); font: 600 14px/1 var(--ld-text); text-decoration: none; white-space: nowrap; border: 0; }
body.ld-gx #item-body #subnav li a:hover { box-shadow: inset 0 0 0 1.5px var(--gx-blue); }
body.ld-gx #item-body #subnav li.current a, body.ld-gx #item-body #subnav li.selected a { background: var(--gx-mid); color: #fff; box-shadow: none; }
body.ld-gx #item-body #subnav li a .count, body.ld-gx #item-body #subnav li a span.count { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--gx-tint); color: var(--gx-ink); font-size: 12px; }

/* inputs: the approved sign-up fields (auth.css): 1.5px line, 12px corners, 16px text, blue focus ring */
body.ld-gx #item-body input[type=text], body.ld-gx #item-body input[type=search], body.ld-gx #item-body input[type=email], body.ld-gx #item-body input[type=url], body.ld-gx #item-body input[type=number], body.ld-gx #item-body select, body.ld-gx #item-body textarea,
body.ld-gx--create #create-group-form input[type=text], body.ld-gx--create #create-group-form select, body.ld-gx--create #create-group-form textarea, body.ld-gx--media .bp-search input[type=search] {
	box-sizing: border-box; max-width: 100%; height: 48px; margin: 0; padding: 0 14px; background: #fff; color: var(--gx-ink); border: 1.5px solid var(--gx-line); border-radius: var(--gx-r); box-shadow: none; font: 400 16px/1.2 var(--ld-text); transition: border-color .16s ease-out, box-shadow .16s ease-out; }
body.ld-gx #item-body textarea, body.ld-gx--create #create-group-form textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; }
body.ld-gx #item-body input:focus, body.ld-gx #item-body select:focus, body.ld-gx #item-body textarea:focus, body.ld-gx--create #create-group-form :is(input, select, textarea):focus, body.ld-gx--media .bp-search input:focus { outline: 0; border-color: var(--gx-blue); box-shadow: 0 0 0 4px rgba(61,99,255,.16); }
body.ld-gx #item-body label, body.ld-gx--create #create-group-form label { display: block; margin: 0 0 6px; font: 600 14px/1.35 var(--ld-text); color: var(--gx-ink); }
body.ld-gx #item-body p.description, body.ld-gx #item-body .description, body.ld-gx--create #create-group-form p.description { margin: 6px 0 0; font: 400 13.5px/1.45 var(--ld-text); color: var(--gx-muted); }

/* search boxes: one pill with the icon inside */
body.ld-gx .bp-search form, body.ld-gx form.bp-dir-search-form { position: relative; display: block; width: 100%; max-width: 420px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.ld-gx .bp-search input[type=search] { width: 100%; height: 44px; padding: 0 40px 0 42px; border-radius: 999px; }
body.ld-gx .bp-search .search-form_submit { position: absolute; left: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; background: none; color: var(--gx-muted); box-shadow: none; }
body.ld-gx .bp-search .search-form_reset { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; padding: 0; margin: 0; border: 0; background: none; color: var(--gx-muted); box-shadow: none; }

/* buttons: primary navy pill (composer's Post), secondary white pill with a line */
body.ld-gx #item-body input[type=submit], body.ld-gx #item-body button[type=submit]:not(.search-form_submit), body.ld-gx #item-body .button:not(.search-form_submit):not(.invite-button):not(.bp-tooltip):not(.layout-view), body.ld-gx #item-body a.button,
body.ld-gx--create #create-group-form input[type=submit], body.ld-gx--media .bb-add-media, body.ld-gx--media #bp-add-video, body.ld-gx--sub #bp-add-media {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; height: 42px; min-width: 0; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: var(--gx-mid) !important; color: #fff !important; box-shadow: none; font: 700 14.5px/1 var(--ld-text); letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; transition: transform .1s ease, background-color .15s; }
body.ld-gx #item-body input[type=submit]:hover, body.ld-gx #item-body .button:hover, body.ld-gx--create #create-group-form input[type=submit]:hover { background: #1b2350 !important; }
body.ld-gx #item-body input[type=submit]:active, body.ld-gx #item-body .button:active, body.ld-gx--create #create-group-form input[type=submit]:active, body.ld-gx--media .bb-add-media:active { transform: scale(.97); }
body.ld-gx #item-body #bp_invites_reset, body.ld-gx #item-body .button.outline, body.ld-gx #item-body #bp-invites-cancel-button, body.ld-gx #item-body .bb-close-invites-members, body.ld-gx #item-body .button.cancel { background: #fff !important; color: var(--gx-ink) !important; box-shadow: inset 0 0 0 1.5px var(--gx-line) !important; }
body.ld-gx #item-body :is(input[type=submit], .button, button) { outline: 0; border: 0 !important; }
body.ld-gx #item-body :is(input[type=submit], .button, button):focus-visible { outline: 2px solid var(--gx-blue); outline-offset: 2px; }

/* BuddyBoss notices: a quiet line, not a blue box */
body.ld-gx .bp-feedback { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 14px 16px; border: 0; border-radius: var(--gx-r); background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); color: var(--gx-muted); font: 500 14.5px/1.45 var(--ld-text); }
body.ld-gx .bp-feedback .bp-icon { display: none; }
body.ld-gx .bp-feedback p { margin: 0; color: inherit; font: inherit; }
body.ld-gx .bp-feedback.loading p::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 10px -2px 0; border: 2px solid var(--gx-line); border-top-color: var(--gx-blue); border-radius: 50%; animation: ldx-spin .8s linear infinite; }
@keyframes ldx-spin { to { transform: rotate(360deg); } }

/* ===== Photos, Videos, Documents directories: the list-page title, a switch between the three, BuddyBoss's tabs as the v3 underline ===== */
body.ld-gx--media #primary { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16px 120px; float: none; }
body.ld-gx--media .entry-header { margin: 0 0 12px; padding: 0; }
body.ld-gx--media .entry-title { margin: 0; font: 800 30px/1.1 var(--ld-display); letter-spacing: -.02em; color: var(--gx-mid); text-shadow: none; }
@media (min-width: 901px) { body.ld-gx--media #primary { padding: 36px 40px 80px; } body.ld-gx--media .entry-title { font-size: 40px; } }
.ldx-msw { display: inline-flex; gap: 2px; margin: 0 0 18px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ldx-msw a { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; color: var(--gx-muted); font: 600 14px/1 var(--ld-text); text-decoration: none; transition: background-color .15s, color .15s; }
.ldx-msw a:hover { color: var(--gx-ink); }
.ldx-msw a.is-on { background: var(--gx-mid); color: #fff; }
body.ld-gx--media #buddypress .bp-navs.dir-navs { margin: 0 0 14px; padding: 0; border: 0; border-bottom: 1px solid var(--gx-line); background: none; }
body.ld-gx--media #buddypress .component-navigation { display: flex; gap: 2px; margin: 0; padding: 0; border: 0; overflow-x: auto; scrollbar-width: none; }
body.ld-gx--media #buddypress .component-navigation > li { flex: none; margin: 0; padding: 0; border: 0; }
body.ld-gx--media #buddypress .component-navigation > li > a { display: flex; align-items: center; padding: 12px 14px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--gx-muted); font: 600 15px/1.2 var(--ld-text); text-decoration: none; }
body.ld-gx--media #buddypress .component-navigation > li > a .bb-component-nav-item-point { font: inherit; color: inherit; border: 0; padding: 0; }
body.ld-gx--media #buddypress .component-navigation > li.selected > a { color: var(--gx-ink); border-bottom-color: var(--gx-mid); }
body.ld-gx--media #buddypress .component-navigation > li.hideshow { display: none; }
body.ld-gx--media .media-options, body.ld-gx--media .video-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
body.ld-gx--media .bb-subnav-filters-container { flex: 1 1 260px; min-width: 0; margin: 0; }
body.ld-gx--media .subnav-filters { margin: 0; padding: 0; border: 0; background: none; }

/* empty pages and empty lists: a named, quiet panel */
.ldx-empty, body.ld-gx .bp-feedback.info { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 180px; padding: 32px 20px; border-radius: var(--gx-r); background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); text-align: center; color: var(--gx-muted); font: 500 15px/1.45 var(--ld-text); }
.ldx-empty svg { width: 36px; height: 36px; fill: none; stroke: #9aa2b8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ldx-empty p { margin: 0; }

/* ===== Create a group (inside Adrian's account shell, which the account lane styles): the steps and the form ===== */
body.ld-gx--create .bp-subhead { margin: 0 0 14px; font: 800 26px/1.15 var(--ld-display); letter-spacing: -.02em; color: var(--gx-mid); text-align: left; text-shadow: none; }
body.ld-gx--create #create-group-form { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.ld-gx--create #create-group-form > .item-body { box-sizing: border-box; margin: 0; padding: 18px 16px 20px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); }
body.ld-gx--create #group-create-tabs { margin: 0 0 18px; padding: 0; border: 0; background: none; }
body.ld-gx--create #group-create-tabs ol { counter-reset: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; border: 0; }
body.ld-gx--create #group-create-tabs li { position: relative; margin: 0; padding: 10px 0 0; border: 0; border-top: 3px solid var(--gx-line); background: none; list-style: none; }
body.ld-gx--create #group-create-tabs li::before, body.ld-gx--create #group-create-tabs li::after { display: none; }
body.ld-gx--create #group-create-tabs li a, body.ld-gx--create #group-create-tabs li span { display: block; padding: 0; border: 0; background: none; color: var(--gx-muted); font: 600 13px/1.25 var(--ld-text); text-decoration: none; overflow-wrap: anywhere; }
body.ld-gx--create #group-create-tabs li.current { border-top-color: var(--gx-blue); }
body.ld-gx--create #group-create-tabs li.current a, body.ld-gx--create #group-create-tabs li.current span { color: var(--gx-ink); }
body.ld-gx--create #group-create-tabs li a:hover { color: var(--gx-blue); }
body.ld-gx--create .creation-step-name { margin: 0 0 16px; font: 700 17px/1.3 var(--ld-text); color: var(--gx-ink); }
body.ld-gx--create #create-group-form input[type=text], body.ld-gx--create #create-group-form select, body.ld-gx--create #create-group-form textarea { width: 100%; margin-bottom: 16px; }
body.ld-gx--create #create-group-form p.description { margin: -10px 0 16px; }
body.ld-gx--create #create-group-form .desc-tip { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: var(--gx-tint); color: var(--gx-ink); vertical-align: -3px; }
body.ld-gx--create .idu-postas { margin: 4px 0 16px; padding: 12px 14px; border-radius: var(--gx-r); background: var(--gx-tint); }
body.ld-gx--create .idu-postas-note { margin: 0; font: 500 14px/1.45 var(--ld-text); color: var(--gx-ink); overflow-wrap: anywhere; }
body.ld-gx--create #previous-next { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 8px 0 0; padding: 0; border: 0; }
body.ld-gx--create #previous-next .idu-cta-wrap { position: relative; display: inline-flex; }
body.ld-gx--create #previous-next .idu-cta-label { display: none; }
body.ld-gx--create #create-group-form input[type=submit] { height: 46px; padding: 0 24px; }
body.ld-gx--create #create-group-form input[type=button], body.ld-gx--create #create-group-form #group-creation-previous { height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff !important; color: var(--gx-ink) !important; box-shadow: inset 0 0 0 1.5px var(--gx-line); font: 700 14.5px/1 var(--ld-text); cursor: pointer; }
@media (min-width: 901px) { body.ld-gx--create #create-group-form > .item-body { padding: 26px 28px 28px; } body.ld-gx--create .bp-subhead { font-size: 32px; } }

/* ===== group Members screen: the group page's member rows (one white panel, hairlines, 44px avatars), Adrian's grid view as compact tiles ===== */
body.ld-gx--members .bb-group-members-count { display: none; }
body.ld-gx--members #item-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
body.ld-gx--members #item-body > * { flex: 0 0 100%; min-width: 0; }
body.ld-gx--members #item-body > #subnav:empty { display: none; }
body.ld-gx--members #item-body > .members-search { flex: 1 1 220px; }
body.ld-gx--members #item-body > .subnav-filters { flex: none; margin: 0; padding: 0; border: 0; background: none; }
body.ld-gx .grid-filters { display: inline-flex; gap: 2px; height: 44px; padding: 4px; box-sizing: border-box; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); }
body.ld-gx .grid-filters .layout-view { display: inline-grid; place-items: center; width: 40px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--gx-muted); font-size: 18px; }
body.ld-gx .grid-filters .layout-view.active { background: var(--gx-mid); color: #fff; }
body.ld-gx #members-group-list { margin: 4px 0 0; }
body.ld-gx #members-group-list .item-list { display: block; margin: 0 0 12px; padding: 0; border-radius: var(--gx-r); background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); overflow: hidden; list-style: none; }
body.ld-gx #members-group-list .item-list > li { width: auto; max-width: none; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--gx-line); background: none; float: none; list-style: none; }
body.ld-gx #members-group-list .item-list > li:first-child { border-top: 0; }
body.ld-gx #members-group-list li.item-entry-header { padding: 14px 16px 6px; border-top: 0; font: 700 12px/1.2 var(--ld-text); letter-spacing: .06em; text-transform: uppercase; color: var(--gx-muted); background: var(--gx-page); }
body.ld-gx #members-group-list .item-list > li.item-entry-header + li { border-top: 0; }
body.ld-gx #members-group-list .list-wrap { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; height: auto; }
body.ld-gx #members-group-list .list-wrap-inner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0; }
body.ld-gx #members-group-list .item-avatar { flex: none; width: 44px; height: 44px; margin: 0; padding: 0; text-align: left; }
body.ld-gx #members-group-list .item-avatar a, body.ld-gx #members-group-list .item-avatar .member-status { display: block; position: relative; width: 44px; height: 44px; margin: 0; }
body.ld-gx #members-group-list .item-avatar img { display: block; width: 44px !important; height: 44px !important; max-width: none; margin: 0; border-radius: 50%; object-fit: cover; box-shadow: none; }
body.ld-gx #members-group-list .member-status::after, body.ld-gx #members-group-list .member-status.online::after { width: 10px; height: 10px; right: 0; bottom: 0; top: auto; border: 2px solid #fff; }
body.ld-gx #members-group-list .item { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; text-align: left; }
body.ld-gx #members-group-list .item-block { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; padding: 0; }
body.ld-gx #members-group-list .member-name { order: 0; margin: 0; padding: 0; font: 700 15px/1.3 var(--ld-text); color: var(--gx-ink); text-align: left; overflow-wrap: anywhere; }
body.ld-gx #members-group-list .member-name a { color: inherit; text-decoration: none; }
body.ld-gx #members-group-list .member-type.only-grid-view { display: none; }
body.ld-gx #members-group-list .member-type.only-list-view { display: block; order: 1; margin: 0; }
body.ld-gx #members-group-list .bp-member-type { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--gx-tint) !important; color: #2b3a73 !important; font: 600 11.5px/1 var(--ld-text); }
body.ld-gx #members-group-list .last-activity { order: 2; flex: 0 0 100%; margin: 0; font: 400 13px/1.35 var(--ld-text); color: var(--gx-muted); text-align: left; }
body.ld-gx #members-group-list .follow-container:empty { display: none; }
body.ld-gx #members-group-list .member-buttons-wrap { flex: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
body.ld-gx #members-group-list .member-buttons-wrap .only-grid-view { display: flex; gap: 6px; margin: 0; padding: 0; border: 0; }
body.ld-gx #members-group-list .member-buttons-wrap .generic-button { margin: 0; padding: 0; border: 0; width: auto; flex: none; }
body.ld-gx #members-group-list .member-buttons-wrap .generic-button a, body.ld-gx #members-group-list .member-buttons-wrap .generic-button button { display: inline-grid; place-items: center; width: 38px; height: 38px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--gx-tint) !important; color: var(--gx-ink) !important; box-shadow: none; font-size: 17px; line-height: 1; transition: transform .1s ease, background-color .15s; }
body.ld-gx #members-group-list .member-buttons-wrap .generic-button a:hover { background: #e2e7f3 !important; }
body.ld-gx #members-group-list .member-buttons-wrap .generic-button a:active { transform: scale(.94); }
body.ld-gx #members-group-list .member-buttons-wrap .generic-button a > span:not([class*=icon]) { display: none; }
body.ld-gx #members-group-list .bp-members-list-hook { display: none; }
/* grid view: compact tiles, two across on a phone */
body.ld-gx #members-group-list .item-list.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--gx-line); }
body.ld-gx #members-group-list .item-list.grid > li { border-top: 0; background: #fff; }
body.ld-gx #members-group-list .item-list.grid > li.item-entry-header { grid-column: 1 / -1; background: var(--gx-page); }
body.ld-gx #members-group-list .item-list.grid .list-wrap-inner { flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 14px; text-align: center; }
body.ld-gx #members-group-list .item-list.grid .item-avatar, body.ld-gx #members-group-list .item-list.grid .item-avatar a, body.ld-gx #members-group-list .item-list.grid .item-avatar .member-status, body.ld-gx #members-group-list .item-list.grid .item-avatar img { width: 64px !important; height: 64px !important; }
body.ld-gx #members-group-list .item-list.grid .item, body.ld-gx #members-group-list .item-list.grid .member-name, body.ld-gx #members-group-list .item-list.grid .last-activity { text-align: center; width: 100%; }
body.ld-gx #members-group-list .item-list.grid .item-block { justify-content: center; }
body.ld-gx #members-group-list .item-list.grid .member-type.only-list-view { flex: 0 0 100%; }
@media (min-width: 901px) {
	body.ld-gx--members #item-body > .members-search { flex: 0 1 360px; margin-right: auto; }
	body.ld-gx #members-group-list .item-list.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.ld-gx #members-group-list .list-wrap-inner { padding: 12px 20px; }
}

/* ===== Photos (a group's and the directory): Add Photos and select on one line, a tight square grid like a phone's camera roll ===== */
body.ld-gx .bb-media-actions-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; background: none; }
body.ld-gx .bb-media-actions-wrap { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
body.ld-gx .bb-media-actions { margin: 0; }
body.ld-gx .bb-member-media-header { margin: 0; padding: 0; border: 0; background: none; }
body.ld-gx .bb-photos-meta { display: flex; gap: 6px; }
body.ld-gx .bb-photos-meta a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); color: var(--gx-ink); font-size: 18px; text-decoration: none; }
body.ld-gx .bb-photos-meta a:hover { box-shadow: inset 0 0 0 1.5px var(--gx-blue); }
body.ld-gx .bb-add-media i, body.ld-gx #bp-add-media i { font-size: 17px; color: inherit; }
body.ld-gx ul.bb-photo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0 0 16px; padding: 0; list-style: none; border-radius: var(--gx-r); overflow: hidden; }
body.ld-gx ul.bb-photo-list > li { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none; list-style: none; }
body.ld-gx ul.bb-photo-list .bb-photo-thumb { position: relative; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--gx-tint); box-shadow: none; aspect-ratio: 1 / 1; overflow: hidden; }
body.ld-gx ul.bb-photo-list .bb-photo-cover-wrap { position: absolute; inset: 0; display: block; margin: 0; padding: 0; border-radius: 0; background: var(--gx-tint); }
body.ld-gx ul.bb-photo-list .bb-photo-cover-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
body.ld-gx ul.bb-photo-list .bb-photo-cover-wrap:active img { transform: scale(.98); }
body.ld-gx ul.bb-photo-list .media-action-wrap { z-index: 2; }
body.ld-gx ul.bb-photo-list .bb-custom-check { z-index: 2; }
@media (min-width: 901px) { body.ld-gx ul.bb-photo-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border-radius: 0; } body.ld-gx ul.bb-photo-list .bb-photo-thumb, body.ld-gx ul.bb-photo-list .bb-photo-cover-wrap { border-radius: 10px; } }
body.ld-gx .video-thumb-list.loading { display: none; }
body.ld-gx .bb-media-model-wrapper:not([style*="block"]) { display: none; }

/* ===== Send invites: the picker and the message as two panels (one column on a phone) ===== */
body.ld-gx #group-invites-container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.ld-gx #group-invites-container .bb-groups-invites-left, body.ld-gx #group-invites-container .bb-groups-invites-right, body.ld-gx #group-invites-container .group-invites-column { box-sizing: border-box; width: auto; max-width: none; margin: 0; padding: 0; float: none; border: 0; border-radius: var(--gx-r); background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); overflow: hidden; }
body.ld-gx #group-invites-container .group-invites-column { padding: 16px; }
body.ld-gx .bb-groups-invites-left-inner { margin: 0; padding: 0; border: 0; }
body.ld-gx .bb-panel-head { margin: 0; padding: 14px 16px 12px; border: 0; border-bottom: 1px solid var(--gx-line); background: none; }
body.ld-gx .bb-panel-subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 10px; }
body.ld-gx .bb-panel-subhead h4 { margin: 0; }
body.ld-gx .bp-group-message-wrap { display: flex; align-items: center; gap: 8px; margin: 0; }
body.ld-gx .bp-group-message-wrap label { margin: 0 !important; font: 500 14px/1.3 var(--ld-text) !important; color: var(--gx-muted) !important; }
body.ld-gx .group-invites-search, body.ld-gx .group-invites-search .bp-search form { margin: 0; max-width: none; }
body.ld-gx .group-invites-members-listing { margin: 0; padding: 0; border: 0; max-height: 420px; overflow-y: auto; }
body.ld-gx .group-invites-members-listing .bp-invites-feedback .bp-feedback { margin: 12px 16px; }
body.ld-gx #group-invites-container ul.item-list { margin: 0; padding: 0; list-style: none; border: 0; }
body.ld-gx #group-invites-container ul.item-list > li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; border: 0; border-top: 1px solid var(--gx-line); background: none; list-style: none; }
body.ld-gx #group-invites-container ul.item-list > li:first-child { border-top: 0; }
body.ld-gx #group-invites-container ul.item-list .item-avatar, body.ld-gx #group-invites-container ul.item-list .item-avatar img { flex: none; width: 40px; height: 40px; margin: 0; border-radius: 50%; }
body.ld-gx #group-invites-container ul.item-list .item { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 0; }
body.ld-gx #group-invites-container ul.item-list .list-title { margin: 0; font: 600 15px/1.3 var(--ld-text); color: var(--gx-ink); overflow-wrap: anywhere; }
body.ld-gx #group-invites-container ul.item-list .list-title a { color: inherit; text-decoration: none; }
body.ld-gx #group-invites-container ul.item-list .action { flex: none; margin: 0; }
body.ld-gx #group-invites-container .invite-button { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--gx-tint) !important; color: var(--gx-ink) !important; box-shadow: none; font-size: 16px; }
body.ld-gx #group-invites-container li.selected .invite-button, body.ld-gx #group-invites-container .invite-button.selected { background: var(--gx-blue) !important; color: #fff !important; }
body.ld-gx .bb-invites-footer { display: flex; justify-content: flex-end; margin: 0; padding: 10px 16px; border-top: 1px solid var(--gx-line); }
body.ld-gx .bb-groups-invites-right { padding: 16px !important; }
body.ld-gx .bb-groups-invites-right .bb-title-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
body.ld-gx .bb-groups-invites-right .bb-title-wrap h2, body.ld-gx .bb-groups-invites-right .bb-title { margin: 0; font: 800 18px/1.2 var(--ld-display); color: var(--gx-mid); }
body.ld-gx .bb-add-invites { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--gx-tint); color: var(--gx-ink) !important; font: 600 14px/1 var(--ld-text); text-decoration: none; cursor: pointer; }
body.ld-gx .bb-add-invites i { color: inherit; font-size: 16px; }
@media (min-width: 901px) { body.ld-gx .bb-add-invites { display: none; } }
body.ld-gx .bb-groups-invites-right .send-to-input, body.ld-gx #group-invites-container #send-to-input { min-height: 48px; margin: 0 0 12px; border: 1.5px solid var(--gx-line); border-radius: var(--gx-r); background: #fff; }
body.ld-gx .bb-groups-invites-right textarea { width: 100%; min-height: 110px; }
body.ld-gx .bb-groups-invites-right .submit { display: flex; justify-content: flex-end; gap: 10px; margin: 12px 0 0; padding: 0; }
@media (min-width: 901px) {
	body.ld-gx #group-invites-container:has(.bb-groups-invites-left) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
	body.ld-gx .bb-groups-invites-right { padding: 20px !important; }
}

/* ===== Manage (organisers) and the create steps that share its markup: one white form panel, sections split by hairlines ===== */
body.ld-gx .bp-manage-group-container { margin: 0; padding: 0; border: 0; background: none; }
body.ld-gx #group-settings-form { box-sizing: border-box; margin: 0; padding: 18px 16px 20px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); }
body.ld-gx #group-settings-form input[type=text], body.ld-gx #group-settings-form textarea, body.ld-gx #group-settings-form select { width: 100%; margin-bottom: 16px; }
body.ld-gx #group-settings-form fieldset, body.ld-gx--create #create-group-form fieldset { margin: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--gx-line); min-width: 0; }
body.ld-gx #group-settings-form fieldset:first-of-type, body.ld-gx--create #create-group-form fieldset:first-of-type { border-top: 0; padding-top: 4px; }
body.ld-gx #group-settings-form legend, body.ld-gx--create #create-group-form legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font: 700 15px/1.35 var(--ld-text); color: var(--gx-ink); }
body.ld-gx #group-settings-form legend + *, body.ld-gx--create #create-group-form legend + * { clear: both; }
body.ld-gx :is(#group-settings-form, #create-group-form) .bp-radio-wrap, body.ld-gx :is(#group-settings-form, #create-group-form) .bp-checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; }
body.ld-gx :is(#group-settings-form, #create-group-form) .bp-radio-wrap label, body.ld-gx :is(#group-settings-form, #create-group-form) .bp-checkbox-wrap label { margin: 0; font: 500 15px/1.4 var(--ld-text); color: var(--gx-ink); }
body.ld-gx :is(#group-settings-form, #create-group-form) .group-setting-label, body.ld-gx :is(#group-settings-form, #create-group-form) .bp-label-text { font: 500 15px/1.4 var(--ld-text); color: var(--gx-ink); }
body.ld-gx :is(#group-settings-form, #create-group-form) ul { margin: 4px 0 8px 28px; padding: 0; color: var(--gx-muted); font: 400 13.5px/1.5 var(--ld-text); }
body.ld-gx :is(#group-settings-form, #create-group-form) input[type=radio], body.ld-gx :is(#group-settings-form, #create-group-form) input[type=checkbox] { accent-color: var(--gx-blue); }
body.ld-gx #item-body .bp-screen-title.warn, body.ld-gx .bp-label-text.warn { color: #b42318; }
body.ld-gx #group-settings-form #delete-group-button, body.ld-gx #group-settings-form input[name=delete-group-button] { background: #b42318 !important; }
body.ld-gx #group-settings-form p.submit, body.ld-gx #group-settings-form .submit { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 12px 0 0; padding: 0; }
body.ld-gx #group-settings-form .bp-avatar-nav ul, body.ld-gx #group-settings-form .avatar-nav-items { display: flex; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; border: 0; }
body.ld-gx #group-settings-form .drag-drop-area, body.ld-gx #group-settings-form .drag-drop .drag-drop-inside { border: 1.5px dashed #c9d0e0; border-radius: var(--gx-r); background: var(--gx-page); }
@media (min-width: 901px) { body.ld-gx #group-settings-form { padding: 26px 28px 28px; } }
/* Manage members and requests: the member rows above */
body.ld-gx #group-settings-form ul.item-list { margin: 0 0 12px; padding: 0; list-style: none; border-radius: var(--gx-r); box-shadow: inset 0 0 0 1px var(--gx-line); overflow: hidden; }
body.ld-gx #group-settings-form ul.item-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 12px 14px; border: 0; border-top: 1px solid var(--gx-line); background: #fff; list-style: none; }
body.ld-gx #group-settings-form ul.item-list > li:first-child { border-top: 0; }
body.ld-gx #group-settings-form ul.item-list img.avatar { width: 40px; height: 40px; border-radius: 50%; }
body.ld-gx #group-settings-form ul.item-list .button, body.ld-gx #group-settings-form ul.item-list .members-manage-buttons a { height: 34px !important; padding: 0 14px !important; font-size: 13.5px !important; }

/* ===== where BuddyBoss's theme and Adrian's child theme win on specificity (computed-style probe, localwp/xp-groups-probe.js, 15 Oct) ===== */
body.ld-gx #content, body.ld-gx .site-content { background: var(--gx-page) !important; }
.ld-comm.ldx .ld-tabs a.ldgx-tab.is-on { background: transparent !important; }
body.ld-gx #members-group-list .item-list > li { width: auto !important; max-width: none !important; min-width: 0; overflow: hidden; }
body.ld-gx #members-group-list .list-wrap { width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; }
body.ld-gx #members-group-list .list-wrap::before, body.ld-gx #members-group-list .list-wrap::after, body.ld-gx #members-group-list .list-wrap-inner::before, body.ld-gx #members-group-list .item-avatar::before { display: none !important; }
body.ld-gx ul.bb-photo-list { display: grid !important; margin-left: 0 !important; margin-right: 0 !important; padding-top: 0 !important; }
body.ld-gx ul.bb-photo-list > li { flex: none !important; }
body.ld-gx--media .entry-title { color: var(--gx-mid) !important; font: 800 30px/1.1 var(--ld-display) !important; }
@media (min-width: 901px) { body.ld-gx--media .entry-title { font-size: 40px !important; } }
body.ld-gx--create #group-create-tabs ol { display: grid !important; }
body.ld-gx--create #group-create-tabs li { float: none !important; width: auto !important; }
/* Create Group: Adrian's CTA is a transparent input over its label; the label wears the navy pill */
body.ld-gx--create #previous-next .idu-cta-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 999px; background: var(--gx-mid); color: #fff; font: 700 14.5px/1 var(--ld-text); transition: transform .1s ease, background-color .15s; }
body.ld-gx--create #previous-next .idu-cta-wrap:hover { background: #1b2350; }
body.ld-gx--create #previous-next .idu-cta-wrap:active { transform: scale(.97); }
body.ld-gx--create #previous-next .idu-cta-label { display: inline-flex !important; align-items: center; gap: 6px; color: #fff; pointer-events: none; }
body.ld-gx--create #previous-next .idu-cta-wrap input[type=submit] { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; padding: 0; opacity: 0; background: transparent !important; }

/* ===== round 2 (r2 shots, 15 Oct) ===== */
/* Manage members: one row per member (avatar, name), its actions as small chips that wrap under the name, Kick and Remove in red */
body.ld-gx #group-settings-form .groups-manage-members-list ul.item-list > li, body.ld-gx #group-settings-form ul.item-list.single-line > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
body.ld-gx #group-settings-form ul.item-list.single-line .member-name { grid-column: 2; margin: 0; font: 700 15px/1.3 var(--ld-text) !important; color: var(--gx-ink); overflow-wrap: anywhere; }
body.ld-gx #group-settings-form .members-manage-buttons, body.ld-gx #group-settings-form ul.item-list .action { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
body.ld-gx #group-settings-form .members-manage-buttons li, body.ld-gx #group-settings-form ul.item-list .action li { margin: 0; padding: 0; border: 0; list-style: none; }
body.ld-gx #item-body #group-settings-form ul.item-list .button, body.ld-gx #item-body #group-settings-form .members-manage-buttons a { height: 30px !important; padding: 0 12px !important; border-radius: 999px; background: var(--gx-tint) !important; color: var(--gx-ink) !important; font: 600 12.5px/1 var(--ld-text) !important; box-shadow: none; }
body.ld-gx #item-body #group-settings-form ul.item-list .button:hover, body.ld-gx #item-body #group-settings-form .members-manage-buttons a:hover { background: #e2e7f3 !important; }
body.ld-gx #item-body #group-settings-form .members-manage-buttons a.banned, body.ld-gx #item-body #group-settings-form .members-manage-buttons a[class*=remove], body.ld-gx #item-body #group-settings-form .members-manage-buttons a.warn { background: #fdecea !important; color: #b42318 !important; }
body.ld-gx #group-settings-form .section-title { margin: 18px 0 8px; font: 700 12px/1.2 var(--ld-text) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--gx-muted) !important; }
body.ld-gx #group-settings-form .bp-help-text { margin: 0 0 10px; font: 400 13.5px/1.5 var(--ld-text); color: var(--gx-muted); }
/* Adrian's orange radios and checkboxes (bs-styled-radio / bs-styled-checkbox) in the v3 blue */
body.ld-gx .bs-styled-radio:checked + label::before, body.ld-gx .bs-styled-checkbox:checked + label::before { background-color: var(--gx-blue) !important; border-color: var(--gx-blue) !important; }
body.ld-gx .bs-styled-radio:checked + label::after { background-color: #fff !important; }
body.ld-gx .bs-styled-radio + label::before, body.ld-gx .bs-styled-checkbox + label::before { border-color: #c9d0e0 !important; }
/* Delete group: the warning reads as a warning */
body.ld-gx #group-settings-form .bp-feedback.warning, body.ld-gx #group-settings-form .warn.bp-feedback, body.ld-gx--admin #group-settings-form > .bp-feedback { background: #fdecea; box-shadow: none; color: #8a1c12; text-align: left; align-items: flex-start; min-height: 0; }
/* Create Group: the label inside Adrian's CTA has its own blue pill; drop it so the navy wrap is the button */
body.ld-gx--create #previous-next .idu-cta-label, body.ld-gx--create #previous-next .idu-cta-label * { background: transparent !important; box-shadow: none !important; color: #fff !important; padding: 0 !important; border: 0 !important; }
body.ld-gx--create #group-create-tabs li a, body.ld-gx--create #group-create-tabs li span { white-space: normal; }
body.ld-gx--create #group-create-tabs ol { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; margin: 0 !important; padding: 0 !important; }
body.ld-gx--create #group-create-tabs li { padding: 10px 0 0 !important; margin: 0 !important; }
body.ld-gx--create #group-create-tabs li::before, body.ld-gx--create #group-create-tabs li::after, body.ld-gx--create #group-create-tabs li a::after, body.ld-gx--create #group-create-tabs li span::after { display: none !important; content: none !important; }
/* Send invites: title on one line beside Select Members */
body.ld-gx .bb-groups-invites-right .bb-title-wrap .bb-title { white-space: nowrap; }
body.ld-gx .bb-groups-invites-right-top { margin: 0; padding: 0; border: 0; }
body.ld-gx .bb-groups-invites-right-bottom { margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--gx-line); }
/* group Photos: no white frame around the grid */
body.ld-gx--photos .bb-media-container, body.ld-gx--photos #media-stream { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
/* members: the plugin's letter avatar (span.ldcp-av, inline 300px) and BuddyBoss's presence dot (an empty span beside the avatar, not a wrapper) */
body.ld-gx #members-group-list .item-avatar a { position: relative; display: block; width: 44px; height: 44px; }
body.ld-gx #members-group-list .item-avatar .ldcp-av { display: grid !important; place-items: center; width: 44px !important; height: 44px !important; border-radius: 50%; color: #fff; font: 700 17px/1 var(--ld-text) !important; }
body.ld-gx #members-group-list .item-avatar .member-status { position: absolute !important; z-index: 1; right: -1px; bottom: -1px; left: auto; top: auto; width: 12px !important; height: 12px !important; border-radius: 50%; border: 2px solid #fff; background: #14b550; }
body.ld-gx #members-group-list .item-avatar .member-status.offline { display: none !important; }
body.ld-gx #members-group-list .item-list.grid .item-avatar a, body.ld-gx #members-group-list .item-list.grid .item-avatar .ldcp-av { width: 64px !important; height: 64px !important; font-size: 24px !important; }
body.ld-gx #members-group-list .member-buttons-wrap .only-grid-view { position: static !important; background: none !important; width: auto !important; height: auto !important; border: 0 !important; }
body.ld-gx #members-group-list .item-list.grid .member-buttons-wrap { justify-content: center; width: 100%; }
body.ld-gx #members-group-list .member-buttons-wrap .generic-button a { width: 38px !important; height: 38px !important; }
.ld-comm.ldx .ld-tabs a.ldgx-tab { border-radius: 0 !important; }
body.ld-gx .bp-search .search-form_submit .dashicons, body.ld-gx .bp-search .search-form_submit [class*=bb-icon] { display: block; width: 18px; height: 18px; margin: 0; font-size: 18px; line-height: 18px; color: var(--gx-muted); }
body.ld-gx .bp-search .search-form_reset [class*=bb-icon] { font-size: 14px; line-height: 36px; color: var(--gx-muted); }
/* desktop: forms keep a reading width; lists and grids use the page */
@media (min-width: 901px) {
	body.ld-gx #group-settings-form, body.ld-gx .bp-manage-group-container > #subnav { max-width: 760px; }
	body.ld-gx--invite #group-invites-container { max-width: 1000px; }
	body.ld-gx--create #create-group-form { max-width: 760px; }
}

/* ===== round 3 (r3 shots) ===== */
/* member grid: white panel with hairline cells (an odd last tile no longer leaves a grey hole); the presence dot stays a dot in grid view */
body.ld-gx #members-group-list .item-list.grid { gap: 0; background: #fff; }
body.ld-gx #members-group-list .item-list.grid > li:not(.item-entry-header) { box-shadow: inset -1px -1px 0 var(--gx-line); }
body.ld-gx #members-group-list .item-list.grid .item-avatar .member-status, body.ld-gx #members-group-list .item-list .item-avatar span.member-status { width: 12px !important; height: 12px !important; }
/* search fields: room for the icon (BuddyBoss's padding won) */
body.ld-gx .bp-search input[type=search] { padding-left: 42px !important; padding-right: 40px !important; height: 44px !important; border: 1.5px solid var(--gx-line) !important; border-radius: 999px !important; background: #fff !important; width: 100% !important; }
body.ld-gx .bp-search .search-form_submit { left: 6px !important; top: 4px !important; }
body.ld-gx--media .bb-subnav-filters-container, body.ld-gx--media .subnav-search, body.ld-gx--media .dir-search { width: 100%; max-width: 420px; border: 0 !important; }
/* create steps: smaller labels, allowed to wrap (never clipped) */
body.ld-gx--create #group-create-tabs li a, body.ld-gx--create #group-create-tabs li span { font-size: 12.5px; white-space: normal; }
/* media directory tiles: flat, like the group's */
body.ld-gx--media ul.bb-photo-list .bb-photo-thumb, body.ld-gx--media ul.bb-photo-list li { box-shadow: none !important; }
/* desktop alignment with the group page (community-v3.css: tabs in a 1320px column, 32px sides, and from 1101px the strip starts at 288px over the page's main column):
   the bar lines up with the cover's edge, the screen under it with the tabs, so nothing jumps between a group's home and its Photos or Manage */
@media (min-width: 901px) {
	.ldx-w { max-width: 1320px; padding: 20px 32px; }
	body.ld-gx--sub .bp-wrap { max-width: 1320px; padding: 28px 32px 80px; }
}
@media (min-width: 1101px) { body.ld-gx--sub .bp-wrap { padding-left: 288px; } }

/* ===== Chatty r1 (15 Oct 10:49pm) ===== */
/* 1. group Members: compact rows like the Members directory in both views (avatar, name, joined and active, connect and message at the right),
      Organisers and Members as labelled rows; at desktop Adrian's grid view is two columns of rows, list view one. On a phone both views are the
      same one column, so the switch only shows from 901px. */
body.ld-gx #members-group-list .item-list.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: #fff; }
body.ld-gx #members-group-list .item-list.grid > li:not(.item-entry-header) { box-shadow: none; border-top: 1px solid var(--gx-line); }
body.ld-gx #members-group-list .item-list.grid .list-wrap-inner { flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; text-align: left; }
body.ld-gx #members-group-list .item-list.grid .item-avatar, body.ld-gx #members-group-list .item-list.grid .item-avatar a, body.ld-gx #members-group-list .item-list.grid .item-avatar img, body.ld-gx #members-group-list .item-list.grid .item-avatar .ldcp-av { width: 44px !important; height: 44px !important; font-size: 17px !important; }
body.ld-gx #members-group-list .item-list.grid .item, body.ld-gx #members-group-list .item-list.grid .member-name, body.ld-gx #members-group-list .item-list.grid .last-activity { text-align: left; width: auto; }
body.ld-gx #members-group-list .item-list.grid .item-block { justify-content: flex-start; }
body.ld-gx #members-group-list .item-list.grid .member-type.only-list-view { flex: none; }
body.ld-gx #members-group-list .item-list.grid .member-buttons-wrap { width: auto; justify-content: flex-end; }
body.ld-gx #members-group-list .last-activity { font-size: 12.5px; line-height: 1.35; }
body.ld-gx #members-group-list .last-activity .separator { margin: 0 3px; }
body.ld-gx #members-group-list .member-buttons-wrap .generic-button a { width: 36px !important; height: 36px !important; font-size: 16px; }
body.ld-gx #members-group-list .item-list > li.item-entry-header { padding: 12px 16px 8px; border-top: 1px solid var(--gx-line); }
body.ld-gx #members-group-list .item-list > li.item-entry-header:first-child { border-top: 0; }
@media (max-width: 900px) { body.ld-gx--members #item-body > .subnav-filters { display: none; } }
@media (min-width: 901px) {
	body.ld-gx #members-group-list .item-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1px; background: var(--gx-line); }
	body.ld-gx #members-group-list .item-list.grid > li { background: #fff; border-top: 0 !important; margin-bottom: 1px !important; }
	body.ld-gx #members-group-list .item-list.grid > li.item-entry-header { grid-column: 1 / -1; background: var(--gx-page); }
}

/* 2. Create a group: the four steps on one line at their own widths; no box inside Adrian's card */
body.ld-gx--create #group-create-tabs ol { display: flex !important; flex-wrap: nowrap; gap: 10px !important; }
body.ld-gx--create #group-create-tabs li { flex: 1 1 auto !important; min-width: 0; }
body.ld-gx--create #group-create-tabs li a, body.ld-gx--create #group-create-tabs li span { font-size: 12.5px; white-space: nowrap; }
body.ld-gx--create #create-group-form > .item-body { padding: 0 !important; border-radius: 0; background: transparent; box-shadow: none; }
body.ld-gx--create #create-group-form > .item-body > *:not(#group-create-tabs):not(input):not(select):not(textarea) { /* r2 20 Oct: never the fields, which lost their line */ border: 0; box-shadow: none; }

/* 4. named empty states: icon in a soft circle, today's line in ink, and the page's own control when it has one */
.ldx-empty, body.ld-gx .bp-feedback.info { gap: 12px; min-height: 0; padding: 36px 20px 32px; }
.ldx-empty svg, body.ld-gx .bp-feedback.info::before { box-sizing: border-box; width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--gx-tint); }
body.ld-gx .bp-feedback.info::before { content: ""; display: block; background: var(--gx-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667089' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 19.5c.8-3.3 3.4-5.5 6.5-5.5s5.7 2.2 6.5 5.5M17 8v6M14 11h6'/%3E%3C/svg%3E") center / 28px no-repeat; }
.ldx-empty p, body.ld-gx .bp-feedback.info p { font: 600 16px/1.4 var(--ld-text) !important; color: var(--gx-ink) !important; max-width: 280px; }
.ldx-empty-btn { display: inline-flex; align-items: center; height: 40px; margin-top: 4px; padding: 0 18px; border-radius: 999px; background: var(--gx-mid); color: #fff !important; font: 700 14px/1 var(--ld-text); text-decoration: none; transition: transform .1s ease; }
.ldx-empty-btn:active { transform: scale(.97); }
/* empty-state icons per page: a photo on Photos and Videos, a person on invites (the default above) */
body.ld-gx--media .bp-feedback.info::before, body.ld-gx--photos .bp-feedback.info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667089' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='m21 16-5-5-8 8'/%3E%3C/svg%3E"); }
/* photo tiles flat everywhere (the signed-out group grid kept the theme's shadow) */
body.ld-gx ul.media-list > li, body.ld-gx ul.media-list .bb-photo-thumb, body.ld-gx ul.media-list .bb-item-thumb { box-shadow: none !important; }

/* ===== round two (20 Oct): the Members screen now opens the group page's Members tab (groups-extra.php), so the rules above for it only reach hidden groups ===== */
/* /photos/: Add Photos was still Adrian's yellow full-width bar (a#bp-add-media.bb-add-photos): the navy pill at its own width, as on a group's Photos */
body.ld-gx--media #bp-add-media, body.ld-gx--media a.bb-add-photos { display: inline-flex; align-self: flex-start; max-width: max-content; align-items: center; justify-content: center; gap: 6px; width: auto; height: 42px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: var(--gx-mid) !important; color: #fff !important; box-shadow: none; font: 700 14.5px/1 var(--ld-text); text-transform: none; text-decoration: none; }
body.ld-gx--media #bp-add-media:hover { background: #1b2350 !important; }
body.ld-gx--media #bp-add-media:active { transform: scale(.97); }
body.ld-gx--media #bp-add-media i, body.ld-gx--media #bp-add-media [class*="bb-icon"] { color: #fff; }
/* Send invites: the message box had lost its line (a later reset won), so on a phone it read as a blank gap under the picker; the field look, a sensible height */
body.ld-gx #item-body textarea#send-invites-control { box-sizing: border-box; width: 100%; height: 140px !important; min-height: 120px; padding: 12px 14px; border: 1.5px solid var(--gx-line) !important; border-radius: var(--gx-r); background: #fff; font: 400 16px/1.5 var(--ld-text); color: var(--gx-ink); }
body.ld-gx #item-body textarea#send-invites-control:focus { outline: 0; border-color: var(--gx-blue) !important; box-shadow: 0 0 0 4px rgba(61,99,255,.16); }

/* ===== round two, Manage (20 Oct): one centred column (sub nav over the panel, not floating left of it at 1440), compact member rows, short settings cards ===== */
body.ld-gx--admin #item-body { max-width: 720px; margin: 0 auto; }
body.ld-gx--admin #item-body > .bp-wrap, body.ld-gx--admin #item-body .bp-wrap { display: block !important; }
body.ld-gx--admin #item-body #subnav, body.ld-gx--admin #item-body .bp-navs.group-subnav { float: none !important; width: auto !important; max-width: none; position: static; }
body.ld-gx--admin #item-body #subnav ul { flex-direction: row !important; }
body.ld-gx--admin #item-body .bb-bp-settings-content, body.ld-gx--admin #item-body .bp-wrap > *:not(nav) { float: none !important; width: auto !important; max-width: none !important; margin-left: 0 !important; }
body.ld-gx--admin #item-body .bp-screen-title { font-size: 22px; }
body.ld-gx--admin #item-body .ldx-cut { display: none; }
/* Settings: the first line under each choice is enough */
body.ld-gx--admin #group-settings-form ul.ldx-short li:not(:first-child) { display: none; }
body.ld-gx--admin #group-settings-form ul.ldx-short { margin: 4px 0 0 30px; padding: 0; list-style: none; }
body.ld-gx--admin #group-settings-form ul.ldx-short li { margin: 0; font: 400 13.5px/1.45 var(--ld-text); color: var(--gx-muted); list-style: none; }

/* ===== round two, Create a group (20 Oct): groups with the same or a close name, under the name field ===== */
.ldx-dupe { display: none; }
.ldx-dupe.is-on { display: flex; flex-direction: column; gap: 6px; margin: -6px 0 16px; padding: 12px; border-radius: var(--gx-r); background: var(--gx-tint); }
.ldx-dupe.is-same { background: #fff4e5; box-shadow: inset 0 0 0 1px #f5d9a8; }
.ldx-dupe p { margin: 0 0 2px; font: 600 14px/1.4 var(--ld-text); color: var(--gx-ink); }
.ldx-dupe a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); text-decoration: none; }
.ldx-dupe a:hover { box-shadow: inset 0 0 0 1.5px var(--gx-blue); }
.ldx-dupe a strong { font: 600 15px/1.3 var(--ld-text); color: var(--gx-ink); }
.ldx-dupe a span { font: 400 13px/1.3 var(--ld-text); color: var(--gx-muted); }
body.ld-gx--admin #item-body .bp-manage-group-container { display: block !important; }
body.ld-gx--admin #item-body .bp-manage-group-container > form, body.ld-gx--admin #item-body #group-settings-form { width: auto !important; max-width: none !important; flex: none !important; padding-left: 0 !important; margin-left: 0 !important; }
body.ld-gx--admin #item-body #subnav { height: auto !important; min-height: 0 !important; }
/* Create: its own centred page, not inside Adrian's account shell (the navy side panel of account links has nothing to do with starting a group) */
body.ld-gx--create .idu-account-shell-nav { display: none !important; }
body.ld-gx--create .idu-account-shell-grid { display: block !important; }
body.ld-gx--create .idu-account-shell-main { width: auto !important; max-width: 720px; margin: 0 auto !important; }
body.ld-gx--create .ldx-lede { margin: -6px 0 18px; font: 400 15.5px/1.5 var(--ld-text); color: var(--gx-muted); text-align: left; }
body.ld-gx--create .bp-subhead, body.ld-gx--create h1, body.ld-gx--create h2.bp-subhead { text-align: left !important; }
body.ld-gx--admin #item-body .bp-manage-group-container > form, body.ld-gx--admin #item-body #group-settings-form { padding: 18px 16px 20px !important; }
@media (min-width: 768px) { body.ld-gx--admin #item-body .bp-manage-group-container > form, body.ld-gx--admin #item-body #group-settings-form { padding: 24px 28px 28px !important; } }
body.ld-gx--create .idu-account-shell-main { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }

/* ===== Round three (20 Oct) ===== */
/* signed-out Start a group: the shared empty state on the page, sign in and join */
body.ld-gx--gate { background: var(--gx-page); }
.ldx-gate { box-sizing: border-box; min-height: 56vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px 120px; }
.ldx-gate__w { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--gx-line); }
.ldx-gate .ld-empty-c__t { font-size: 24px; }
.ldx-gate .ld-empty-c__a { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ldx-gate__join { color: var(--gx-blue); font: 600 15px/1.2 var(--ld-text); text-decoration: none; }
.ldx-gate__join:hover { text-decoration: underline; }
/* pagination on group screens (Manage members, Send invites): the shared pills of the members and groups lists, never Adrian's orange */
body.ld-gx #buddypress .bp-pagination-links .page-numbers, body.ld-gx .bp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; margin: 0 4px 6px 0; padding: 0 14px; box-sizing: border-box; border: 0; border-radius: 999px; background: #fff; color: var(--gx-mid); box-shadow: inset 0 0 0 1px var(--gx-line); font: 600 14px/1 var(--ld-text); text-decoration: none; }
body.ld-gx #buddypress .bp-pagination-links .page-numbers.current, body.ld-gx .bp-pagination .page-numbers.current { background: var(--gx-mid); color: #fff; box-shadow: none; }
body.ld-gx #buddypress .bp-pagination-links .page-numbers.dots, body.ld-gx .bp-pagination .page-numbers.dots { background: none; box-shadow: none; }
body.ld-gx .bp-pagination .pag-count { color: var(--gx-muted); font: 500 14px/1.4 var(--ld-text); }
/* Send invites: share the link, then the people on LandDU with one Invite each (BuddyBoss's picker hidden; Pending invites unchanged) */
body.ldx-inv-page #item-body { display: none; }
.ldx-inv { box-sizing: border-box; max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; display: grid; gap: 14px; }
.ldx-inv-c { padding: 18px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--gx-line); }
.ldx-inv-c h2 { margin: 0; font: 800 20px/1.2 var(--ld-display); letter-spacing: -.01em; color: var(--gx-mid); }
.ldx-inv-share p { margin: 6px 0 14px; color: var(--gx-muted); font: 500 15px/1.45 var(--ld-text); }
.ldx-inv-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ldx-inv-btns .ld-btn { min-height: 42px; }
.ldx-inv-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.ldx-inv-h a { color: var(--gx-blue); font: 600 14px/1 var(--ld-text); text-decoration: none; }
.ldx-inv-h small { margin-left: 4px; color: var(--gx-muted); font-weight: 600; }
.ldx-inv-s { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; margin: 0 0 6px; border-radius: 999px; background: var(--gx-page); box-shadow: inset 0 0 0 1px var(--gx-line); }
.ldx-inv-s svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gx-muted); stroke-width: 1.8; stroke-linecap: round; }
.ldx-inv-s input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; font: 500 16px/1 var(--ld-text); color: var(--gx-ink); outline: 0; }
.ldx-inv-l { margin: 0; padding: 0; list-style: none; }
.ldx-inv-l > li { border-bottom: 1px solid var(--gx-line); }
.ldx-inv-l > li:last-child { border-bottom: 0; }
.ldx-inv-l > li[hidden] { display: none; }
.ldx-inv-l .mr { padding: 10px 0; }
.ldx-inv-f { margin: 0 0 0 auto; flex: none; }
.ldx-inv-b { min-width: 84px; }
.ldx-inv-done { margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--gx-tint); color: var(--gx-muted); font: 600 13px/1 var(--ld-text); }
.ldx-inv-none { display: none; }
.ldx-inv-none.is-on { display: flex; }
@media (min-width: 901px) { .ldx-inv { padding: 28px 40px 80px; } .ldx-inv-c { padding: 22px 24px; } }
/* a group's Photos: what members posted, newest first, each opening its post (BuddyBoss's AJAX grid hidden) */
body.ldx-ph-page #item-body { display: none; }
.ldx-ph { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 16px 16px 120px; }
.ldx-ph-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ldx-ph-h h2 { margin: 0; font: 800 24px/1.15 var(--ld-display); letter-spacing: -.02em; color: var(--gx-mid); }
.ldx-ph-h p { margin: 4px 0 0; color: var(--gx-muted); font: 500 14px/1.4 var(--ld-text); }
.ldx-ph-h .ld-btn { flex: none; }
.ldx-ph-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; border-radius: var(--gx-r); overflow: hidden; }
.ldx-ph-g li { margin: 0; aspect-ratio: 1; background: var(--gx-tint); }
.ldx-ph-g a { position: relative; display: block; width: 100%; height: 100%; }
.ldx-ph-g img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ldx-ph-g span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(10,14,36,.62)); color: #fff; font: 600 11px/1.2 var(--ld-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .15s; }
.ldx-ph-g a:hover span, .ldx-ph-g a:focus-visible span { opacity: 1; }
.ldx-ph .ld-empty-c { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--gx-line); max-width: none; }
@media (min-width: 901px) { .ldx-ph { padding: 28px 40px 80px; } .ldx-ph-h h2 { font-size: 30px; } .ldx-ph-g { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border-radius: 0; } .ldx-ph-g li { border-radius: 10px; overflow: hidden; } }
@media (hover: none) { .ldx-ph-g span { display: none; } }
/* directories: the switch's counts */
.ldx-msw small { margin-left: 6px; font: 600 12px/1 var(--ld-text); opacity: .7; }
body.ld-gx--media .ld-empty-c { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--gx-line); max-width: none; }
/* one pill for this file's actions: navy, never Adrian's orange small button */
.ldx-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--gx-mid); color: #fff !important; font: 600 14px/1 var(--ld-text); text-decoration: none !important; cursor: pointer; transition: background-color .15s, transform .1s; }
.ldx-pill:hover { background: #1b2350; }
.ldx-pill:active { transform: scale(.97); }
.ldx-pill:disabled { opacity: .6; cursor: default; }
.ldx-pill--soft { background: var(--gx-tint); color: var(--gx-mid) !important; }
.ldx-pill--soft:hover { background: #e2e7f2; }
.ldx-pill--ghost { background: #fff; color: var(--gx-mid) !important; box-shadow: inset 0 0 0 1px var(--gx-line); }
.ldx-pill--ghost:hover { background: var(--gx-page); }
.ldx-inv-b { min-height: 34px; padding: 0 16px; font-size: 13px; }
/* Adrian's theme paints every <button> orange with !important: the pills that are buttons (Invite, Copy link) need it back */
body.ld-gx button.ldx-pill { background: var(--gx-mid) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
body.ld-gx button.ldx-pill--ghost { background: #fff !important; color: var(--gx-mid) !important; box-shadow: inset 0 0 0 1px var(--gx-line) !important; }
body.ld-gx .ldx-pill--soft, body.ld-gx a.ldx-pill--soft { background: var(--gx-tint) !important; color: var(--gx-mid) !important; }

/* ===== Round three, Manage > Members (20 Oct redo): the group page's Members tab (community-v3.css .mh, .msr, .mg, .mr, .role) with one ••• each ===== */
/* no form panel round it: the list is the panel (no box in a box) */
body.ld-gx--mm #item-body .bp-manage-group-container > form, body.ld-gx--mm #item-body #group-settings-form { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
body.ld-gx--mm #item-body #subnav { border-bottom: 0 !important; margin-bottom: 18px; }
@media (max-width: 900px) { body.ld-gx--mm .bp-wrap { padding-left: 0 !important; padding-right: 0 !important; } }
.ld-comm.ldx-mgr { width: auto; max-width: none; margin: 0; background: transparent; overflow: visible; }
.ldx-mgr .ld-p-members { display: block; }
.ld-comm.ldx-mgr .ld-p-members .mh { flex-wrap: wrap; padding: 2px 0 12px; }
.ld-comm.ldx-mgr .ld-p-members .mh h3 { order: 0; margin: 0 auto 0 0; font: 800 20px var(--ld-display); letter-spacing: -.02em; }
.ld-comm.ldx-mgr .ld-p-members .mh .ld-btn { order: 1; }
.ld-comm.ldx-mgr .ld-p-members .mh .msr { order: 2; flex: 0 0 100%; width: 100%; max-width: none; }
.ld-comm.ldx-mgr .msr input { -webkit-appearance: none; appearance: none; box-shadow: none !important; border: 0 !important; background: none !important; margin: 0 !important; color: var(--ld-ink); }
.ld-comm.ldx-mgr .msr input::placeholder { color: var(--ld-muted); opacity: 1; }
.ld-comm.ldx-mgr .msr:focus-within { box-shadow: inset 0 0 0 1.5px var(--gx-blue); }
.ldx-mgr-q { margin: -4px 0 10px; font: 500 14px/1.4 var(--ld-text); color: var(--ld-muted); }
.ldx-mgr-q a { margin-left: 6px; font-weight: 600; color: var(--gx-blue); }
/* one list: organisers, moderators, members, banned. Not clipped, so a menu can hang over the rows below; the corners come from the list itself */
/* phone: edge to edge like the group's Members tab; desktop: its rounded card */
.ld-comm.ldx-mgr .mg { display: block; overflow: visible; margin: 0 -16px; border: 0; border-top: 1px solid var(--ld-line); border-bottom: 1px solid var(--ld-line); border-radius: 0; background: #fff; }
@media (min-width: 901px) { .ld-comm.ldx-mgr .mg { margin: 0; border: 1px solid var(--ld-line); border-radius: 12px; } }
.ld-comm.ldx-mgr .mg .mr { background: transparent; border-right: 0; border-bottom: 1px solid var(--ld-line); }
.ld-comm.ldx-mgr .mg .mr:last-child { border-bottom: 0; }
.ld-comm.ldx-mgr .mr-a { display: contents; color: inherit; }
.ld-comm.ldx-mgr .mr-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-comm.ldx-mgr .mr-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-comm.ldx-mgr .role--moderator { background: color-mix(in srgb, var(--c-mid, #3d63ff) 14%, #fff); color: var(--c-base, #0a0e24); }
.ld-comm.ldx-mgr .role--banned { background: #fdecea; color: #b42318; }
/* the ••• : the shared quiet circle (community.css .lp-more), same on every row; open = the soft page tint, never solid */
.ld-comm.ldx-mgr .ldx-pm { flex: none; }
.ld-comm.ldx-mgr .ldx-pm > summary { cursor: pointer; list-style: none; }
.ld-comm.ldx-mgr .ldx-pm > summary::-webkit-details-marker { display: none; }
.ld-comm.ldx-mgr .ldx-pm[open] > summary { background: var(--ld-page, #f3f4f8); color: var(--ld-ink); }
.ld-comm.ldx-mgr .ldx-pm > summary:focus-visible { outline: 2px solid var(--gx-blue); outline-offset: 1px; }
.ld-comm.ldx-mgr .mr:has(.ldx-pm[open]) { z-index: 40; }
/* desktop popover: the shared menu (white, shadow, icons, red for Remove and Ban), above the rows, upward near the bottom */
.ld-comm.ldx-mgr .ldx-pm .menu { top: 42px; right: 0; width: 248px; z-index: 50; }
.ld-comm.ldx-mgr .ldx-pm.is-up .menu { top: auto; bottom: 42px; }
.ld-comm.ldx-mgr .ldx-pm .menu a { text-decoration: none; }
.ld-comm.ldx-mgr .ldx-pm .menu a .i { width: 18px; height: 18px; }
.ld-comm.ldx-mgr .ldx-pm .menu a.rp .i { color: #b42318; }
.ldx-pm-ask { padding: 10px 8px 4px; }
.ldx-pm-ask .jd-t { margin: 0 0 4px; padding: 0; text-align: left; font-size: 16px; }
.ldx-pm-sub { margin: 0 0 12px; font: 400 13.5px/1.45 var(--ld-text, system-ui); color: #646B80; }
.ldx-pm-ov .ldx-pm-sub { margin: -6px 8px 14px; text-align: center; }
.ld-comm.ldx-mgr .ldx-pm-ask .jd-leave, .ld-comm.ldx-mgr .ldx-pm-ask .jd-c { min-height: 42px; margin: 0 0 6px; border-radius: 12px; font-size: 14.5px; text-decoration: none; }
.ld-comm.ldx-mgr .ldx-pm-ask a.jd-leave, .ld-comm.ldx-mgr .ldx-pm-ask a.jd-leave:hover, .ld-comm.ldx-mgr .ldx-pm-ask a.jd-leave:focus { display: flex; padding: 0; color: #fff; font-weight: 700; }
.ld-comm.ldx-mgr .ldx-pm-ask a.jd-leave:hover { background: #9A1D14; }
.ld-comm.ldx-mgr .ldx-pm-ask .jd-c { display: flex; align-items: center; justify-content: center; color: var(--ld-ink); }
.ld-comm.ldx-mgr .ldx-pm-ask .jd-c:hover { background: #f3f4f8; }
.ldx-pm-ov .jd-i { text-decoration: none; }
.ldx-pm-ov .jd-i span { flex: 1; }
.ldx-pm-ov .jd-i, .ldx-pm-ov .jd-i:hover, .ldx-pm-ov .jd-i:focus, .ldx-pm-ov .jd-i:visited { color: #0A0E24 !important; }
.ldx-pm-ov .jd-i.jd-red, .ldx-pm-ov .jd-i.jd-red:hover, .ldx-pm-ov .jd-i.jd-red:focus, .ldx-pm-ov .jd-i.jd-red:visited, .ldx-pm-ov .jd-red .i { color: #b42318 !important; }
.ldx-pm-ov .jd-leave, .ldx-pm-ov .jd-leave:visited { color: #fff !important; }
/* phone: the ••• opens the bottom sheet, so the popover never shows */
@media (max-width: 900px) { .ld-comm.ldx-mgr .ldx-pm .menu { display: none; } .ld-comm.ldx-mgr .ldx-pm[open] > summary { background: none; color: var(--ld-muted); } }
/* Details / Settings / Photo / Members (and the group's tab strip on Manage): the shared fade and chevron when the row runs off the edge */
body.ld-gx--admin #item-body #subnav { position: relative; }
body.ld-gx--admin #item-body #subnav.is-over > ul { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 14px)); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 14px)); }
body.ld-gx--admin #item-body #subnav.is-over::before { content: ""; position: absolute; z-index: 2; top: 50%; right: var(--cue-r, 0px); width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; pointer-events: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0e24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: 0 1px 5px rgba(10,14,36,.2); }
/* phone: the five Manage pills fit on one line (tighter padding and type); a longer row (a private group's Requests) still scrolls under the fade */
@media (max-width: 480px) {
	body.ld-gx--admin #item-body #subnav ul { gap: 4px; }
	body.ld-gx--admin #item-body #subnav li a { padding: 0 10px; font-size: 13.5px; }
}

/* ===== Send invites polish (t_b578e913a4): plain rows inside the one card, a light Join-style Invite (the groups list's Join), WhatsApp and Copy link as a matched pair ===== */
.ld-comm .ldx-inv-l .mr { padding: 12px 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ldx-inv-h { align-items: baseline; }
.ldx-inv-h a[hidden] { display: none; }
.ldx-inv-btns .ldx-pill { flex: 1 1 0; min-width: 0; gap: 8px; }
.ldx-inv-btns .ldx-pill svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 901px) { .ldx-inv-btns .ldx-pill { flex: 0 0 auto; min-width: 160px; } }
.ldx-pill--join, body.ld-gx button.ldx-pill--join { min-height: 32px; padding: 0 14px; background: var(--ld-tint, #eef1f7) !important; color: #2b3a73 !important; font: 700 13px/1 var(--ld-text); box-shadow: none !important; }
body.ld-gx button.ldx-pill--join:hover { background: #e2e7f2 !important; }
.ldx-inv-done { height: 32px; background: none; padding: 0 4px; color: var(--gx-muted); }
/* the pair: Adrian's button rules (display block, 500 15px, 10px 20px) and a link rule (no shadow) pulled them apart; one shape for both */
body.ld-gx .ldx-inv-btns :is(a, button).ldx-pill { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; height: 44px; min-height: 44px; margin: 0 !important; padding: 0 18px !important; border: 0 !important; border-radius: 999px !important; background: #fff !important; color: var(--gx-mid) !important; box-shadow: inset 0 0 0 1px var(--gx-line) !important; font: 600 15px/1 var(--ld-text) !important; text-decoration: none !important; }
body.ld-gx .ldx-inv-btns :is(a, button).ldx-pill:hover { background: var(--gx-page) !important; }
body.ld-gx .ldx-inv-h h2 { margin: 0 !important; }
.ldx-inv > *, .ld-comm .ldx-inv-l .mr-n { min-width: 0; }
.ld-comm .ldx-inv-l .mr-n { flex: 1 1 auto; }

/* ===== Batch two (20 Oct): the site-wide Photos, Videos and Documents pages (groups-extra.php "Batch two"), the group Photos gallery on the page ===== */
body.ldx-mp .entry-header, body.ldx-mp #buddypress > .screen-content, body.ldx-mp #buddypress > .ldx-mp-w ~ * { display: none !important; }
body.ldx-mp #buddypress { margin: 0; padding: 0; }
.ld-comm.ldx-mp-w { background: transparent; margin: 0; }
.ldx-mp-w .ldx-ph-h { align-items: center; }
.ldx-mp-w .ldx-ph-h h1 { margin: 0; font: 800 30px/1.1 var(--ld-display); letter-spacing: -.02em; color: var(--gx-mid); }
.ldx-mp-w .ldx-ph-h p { margin: 6px 0 0; }
.ldx-mp-w .ldx-ph-h .ldx-pill { flex: none; }
.ld-comm .fbar.ldx-mp-f { position: relative; margin: 0 0 14px; padding: 0; }
.ld-comm .ldx-mp-f .ld-frow { display: flex; gap: 6px; margin: 0; padding: 2px 0; overflow-x: auto; scrollbar-width: none; }
.ld-comm .ldx-mp-f .ld-frow::-webkit-scrollbar { display: none; }
.ld-comm .ldx-mp-f .ld-chip { flex: none; text-decoration: none; }
.ld-comm .ldx-mp-f .ld-chip small { margin-left: 6px; font-weight: 600; opacity: .6; }
.ldx-mp-w .ldx-ph-g { margin: 0; }
.ldx-mp-more { margin: 18px 0 0; color: var(--gx-muted); font: 500 14px/1.45 var(--ld-text); }
.ldx-mp-more a { color: var(--gx-blue); font-weight: 600; text-decoration: none; }
body.ldx-mp .ldx-msw { margin: 0 0 16px; }
@media (min-width: 901px) { .ldx-mp-w .ldx-ph-h h1 { font-size: 40px; } .ldx-mp-w .ldx-ph-h { margin-bottom: 20px; } }
/* lead's review of 830a9df: the search placeholder at full strength (as Manage members), and the sub line held to one row */
.ldx-inv-s input::placeholder { color: var(--gx-muted) !important; opacity: 1 !important; }
.ld-comm .ldx-inv-l .mr-n small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ldx-mp-w .ldx-ph-h { margin-bottom: 4px; }
.ldx-mp-l { margin: 0 0 14px; color: var(--gx-muted); font: 500 14px/1.4 var(--ld-text); }
@media (min-width: 901px) { .ldx-mp-l { margin-bottom: 18px; font-size: 15px; } }

/* ---- finish (31 Oct, plan E): Photos, Videos and Documents ---- */
/* the three pages are one segmented control (one track, the open page lifts in white), the same at every width */
.ldx-msw { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; max-width: 440px; padding: 3px; border-radius: 12px; background: #eef1f6; box-shadow: none; overflow: visible; }
.ldx-msw a { justify-content: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 9px; }
.ldx-msw a.is-on { background: #fff; color: var(--gx-ink, #0a0e24); box-shadow: 0 1px 3px rgba(13,18,36,.14), 0 0 0 .5px rgba(13,18,36,.06); }
.ldx-msw a small { color: var(--gx-muted, #5b6478); font: 500 12.5px/1 var(--ld-text); }
/* the group picker: one compact select sized to its content */
.ldx-mp-f { margin: 0 0 16px; }
.ldx-mp-f .ldx-mp-sel { width: auto; min-width: 220px; max-width: 100%; height: 44px; padding: 0 36px 0 14px; border: 1px solid #dfe3ec; border-radius: 12px; background: #fff; font: 500 15px/1 var(--ld-text); color: var(--gx-ink, #0a0e24); }
/* the grid: square tiles, 3 across on a phone, 5 on a tablet, 6 on desktop */
@media (min-width: 700px) { .ldx-ph-g { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } }
@media (min-width: 1200px) { .ldx-ph-g { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
