/* Owner-only member directory and detail. Other Community screens remain unchanged. */
#community:is([data-community-screen="members"],[data-community-screen="member"]){background:#f4f1e9;color:#243238}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-shell{padding-bottom:34px}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-members-head{max-width:660px;margin:4px auto 21px}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-members-head h1{
  margin:0;color:#25343a;font-size:clamp(21px,5.5vw,27px);line-height:1.15;letter-spacing:-.035em;overflow-wrap:anywhere;
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-members-head small{color:#547078;font-size:12px;letter-spacing:.12em}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-members-head .community-back{
  min-width:44px;min-height:44px;border-color:#bfc3bc;background:#faf7f0;color:#26343a;
  box-shadow:inset 1px 1px #fffdf8,0 4px 9px rgba(32,40,45,.08);
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-members-body{display:grid;max-width:660px;gap:20px;margin:0 auto}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-members-body>.community-owner-error,
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-busy{margin:0;font-size:16px;line-height:1.5}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-error{
  box-sizing:border-box;max-width:660px;margin:0 auto;padding:24px;border:1px solid #d2b5a7;border-top-color:#fffdf8;border-left-color:#fffdf8;
  border-radius:17px;background:#fcf7f1;color:#4b5150;box-shadow:inset 1px 1px #fffdf8,0 7px 16px rgba(30,37,39,.07);
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-error h2{margin:0;color:#25343a;font-size:20px;line-height:1.2}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-error p{color:#526168;font-size:16px;line-height:1.5}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-error button{
  min-height:44px;margin-top:12px;padding:10px 16px;border:1px solid #b4c6bf;border-radius:11px;background:#e7f0eb;
  color:#265e68;font-size:14px;font-weight:900;
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-loading,
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-busy{
  box-sizing:border-box;max-width:660px;padding:20px;border:1px solid #c8c5bb;border-radius:15px;background:#faf7f0;color:#405158;
}
#community[data-community-screen="members"] .community-members-intro,
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-profile,
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-panel{
  box-sizing:border-box;min-width:0;margin:0;padding:23px;
  border:1px solid #c8c5bb;border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:17px;
  background:#faf7f0;color:#25343a;box-shadow:inset 1px 1px #fffdf8,inset -1px -1px #d3cec4,0 4px 0 #d4cfc4,0 10px 20px rgba(30,37,39,.07);
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-kicker{margin:0;color:#287986;font-size:12px;letter-spacing:.1em}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-members-body h2{margin:9px 0 0;color:#25343a;font-size:clamp(20px,5vw,25px);line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
#community[data-community-screen="members"] .community-members-intro>p:last-of-type{margin:12px 0 0;color:#526168;font-size:16px;line-height:1.5}
#community[data-community-screen="members"] .community-members-counts{display:flex;flex-wrap:wrap;gap:9px;margin-top:19px}
#community[data-community-screen="members"] .community-members-counts span{
  padding:8px 11px;border:1px solid #bfd1c9;border-radius:10px;background:#e9f1eb;color:#33646a;font-size:14px;font-weight:850;line-height:1.3;
}
#community[data-community-screen="members"] .community-members-directory{display:grid;gap:15px;min-width:0}
#community[data-community-screen="members"] .community-member-tools{
  display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px;margin:0;padding:20px;
  border:1px solid #c8c5bb;border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:16px;
  background:#faf7f0;box-shadow:inset 1px 1px #fffdf8,0 7px 16px rgba(30,37,39,.06);
}
#community[data-community-screen="members"] .community-member-tools label{min-width:0;gap:8px}
#community[data-community-screen="members"] .community-member-tools span{color:#40565d;font-size:14px;line-height:1.4;letter-spacing:.04em}
#community[data-community-screen="members"] .community-member-tools input,
#community[data-community-screen="members"] .community-member-tools select{
  min-height:48px;min-width:0;border-color:#afb9b5;background:#fffdf9;color:#25343a;font-size:16px;font-weight:600;
}
#community[data-community-screen="members"] .community-member-results{margin:0 2px!important;color:#526168;font-size:14px!important;line-height:1.4;letter-spacing:.07em}
#community[data-community-screen="members"] .community-owner-list{display:grid;gap:17px;margin:0}
#community[data-community-screen="members"] .community-member-card{
  display:block;min-width:0;padding:20px;border:1px solid #c8c5bb;border-top-color:#fffdf8;border-left-color:#fffdf8;
  border-radius:17px;background:#faf7f0;box-shadow:inset 1px 1px #fffdf8,inset -1px -1px #d3cec4,0 4px 0 #d4cfc4,0 9px 19px rgba(30,37,39,.07);
}
#community[data-community-screen="members"] .community-member-open{
  display:flex;align-items:center;gap:12px;box-sizing:border-box;min-height:64px!important;color:#25343a;text-align:left;
}
#community[data-community-screen="members"] .community-member-open span{min-width:0;flex:1 1 auto}
#community[data-community-screen="members"] .community-member-open b{color:#25343a;font-size:19px;line-height:1.2}
#community[data-community-screen="members"] .community-member-open small{margin-top:6px;color:#526168;font-size:14px;line-height:1.4}
#community[data-community-screen="members"] .community-member-open i{flex:0 0 auto;color:#287986;font-size:12px}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;margin-top:18px;padding-top:18px;border-top:1px solid #d4d2c9;
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-actions button{
  box-sizing:border-box;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #afc4bd;border-radius:10px;
  background:#e9f1eb;color:#285963;font-size:14px;font-weight:900;line-height:1.4;overflow-wrap:anywhere;
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-actions button.is-danger{
  border-color:#d5b3a8;background:#fbf0ec;color:#8c4b3b;
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-actions button:disabled{opacity:.55}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-protected{
  margin:17px 0 0;padding-top:14px;border-top:1px solid #d4d2c9;color:#526168;font-size:14px;line-height:1.4;
}
#community[data-community-screen="members"] .community-member-empty{margin:0;padding:23px;border:1px solid #c8c5bb;border-radius:15px;background:#faf7f0;color:#526168;font-size:16px}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-panel h2{margin:8px 0 0}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-history{gap:0;margin:17px 0 0}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-history article{
  display:block;min-width:0;padding:13px 0;border:0;border-top:1px solid #d4d2c9;border-radius:0;background:transparent;
}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-history b{color:#25343a;font-size:14px;line-height:1.35}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-history small{color:#5c6a6f;font-size:12px;line-height:1.4}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-history>p{margin:0;color:#526168;font-size:16px;line-height:1.5}
#community[data-community-screen="member"] .community-member-profile-head{align-items:flex-start;gap:15px}
#community[data-community-screen="member"] .community-member-profile-head>div{min-width:0}
#community[data-community-screen="member"] .community-member-profile-head .community-avatar{
  display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #b4ccc6;border-radius:13px;
  background:#e6f0eb;color:#287986;
}
#community[data-community-screen="member"] .community-member-profile-head .community-avatar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9}
#community[data-community-screen="member"] .community-member-profile h2{margin:0;font-size:clamp(23px,5.5vw,29px)}
#community[data-community-screen="member"] .community-member-profile-head p{margin:6px 0 0;color:#526168;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#community[data-community-screen="member"] .community-member-profile dl{gap:10px;margin:22px 0 0}
#community[data-community-screen="member"] .community-member-profile dl div{
  min-width:0;padding:15px;border:1px solid #d4d3c9;border-radius:12px;background:#f1eee6;
}
#community[data-community-screen="member"] .community-member-profile dt{color:#526168;font-size:14px;line-height:1.3;letter-spacing:.07em}
#community[data-community-screen="member"] .community-member-profile dd{color:#25343a;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
#community[data-community-screen="member"] .community-member-activity{gap:11px;margin:17px 0 0}
#community[data-community-screen="member"] .community-member-activity article{
  padding:16px;border:1px solid #d4d3c9;border-radius:12px;background:#f1eee6;color:#25343a;
}
#community[data-community-screen="member"] .community-member-activity b{color:#287986;font-size:12px;line-height:1.3}
#community[data-community-screen="member"] .community-member-activity p{margin:9px 0;color:#405158;font-size:16px;line-height:1.5;white-space:pre-wrap}
#community[data-community-screen="member"] .community-member-activity small{color:#5c6a6f;font-size:12px;line-height:1.4}
#community[data-community-screen="member"] .community-member-activity>p{margin:0;color:#526168;font-size:16px;line-height:1.5}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-open:focus-visible,
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-actions button:focus-visible,
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-tools :focus-visible,
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-error button:focus-visible{outline:3px solid #167c8b;outline-offset:3px}

@media(max-width:390px){
  #community[data-community-screen="members"] .community-member-tools{grid-template-columns:minmax(0,1fr)}
  #community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-actions{grid-template-columns:minmax(0,1fr)}
  #community[data-community-screen="member"] .community-member-profile dl{grid-template-columns:minmax(0,1fr)}
}
@media(forced-colors:active){
  #community:is([data-community-screen="members"],[data-community-screen="member"]) .community-members-intro,
  #community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-tools,
  #community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-card,
  #community:is([data-community-screen="members"],[data-community-screen="member"]) .community-member-profile,
  #community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-panel,
  #community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-error{border:2px solid CanvasText;box-shadow:none}
}
@media(prefers-reduced-motion:reduce){
  #community:is([data-community-screen="members"],[data-community-screen="member"]) *{scroll-behavior:auto!important;transition:none!important}
}

/* Member action feedback and confirmation stay inside this owner flow. */
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-action-notice{box-sizing:border-box;max-width:660px;margin:0 auto 18px;padding:18px;border:1px solid #c8c5bb;border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:16px;background:#faf7f0;box-shadow:inset 1px 1px #fffdf8,inset -1px -1px #d3cec4,0 3px 0 #d4cfc4;color:#25343a}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-action-notice p{margin:0;color:#40555b;font-size:16px;line-height:1.55;overflow-wrap:anywhere}
#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-action-notice button{box-sizing:border-box;width:100%;min-height:48px;margin-top:15px;padding:13px 15px;border:1px solid #afc4bd;border-radius:11px;background:#e9f1eb;color:#285963;font-size:14px;font-weight:900;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#community[data-community-screen="members"] .community-member-role-help{margin:14px 0 0;color:#526168;font-size:14px;line-height:1.5}
#community .community-sheet-backdrop[data-community-owner-action]{box-sizing:border-box;padding:12px 12px calc(12px + env(safe-area-inset-bottom));background:rgba(26,35,39,.48)}
#community [data-community-owner-action] .community-sheet{box-sizing:border-box;width:min(620px,100%);max-height:min(88dvh,780px);padding:22px;border:1px solid #c8c5bb;border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:21px;background:#faf7f0;color:#25343a;box-shadow:inset 1px 1px #fffdf8,inset -1px -1px #d3cec4,0 16px 38px rgba(25,33,36,.22);overscroll-behavior:contain}
#community [data-community-owner-action] h2{margin:2px 0 15px;color:#25343a;font-size:clamp(22px,5.7vw,29px);line-height:1.2;letter-spacing:-.03em;overflow-wrap:anywhere}
#community [data-community-owner-action] p{margin:0;color:#40555b;font-size:16px;line-height:1.55;overflow-wrap:anywhere}
#community [data-community-owner-action] .community-owner-action-target{margin:18px 0;padding:16px;border:1px solid #c8c5bb;border-radius:12px;background:#f2efe8;overflow-wrap:anywhere}
#community [data-community-owner-action] .community-owner-action-target span{display:block;margin-bottom:9px;color:#526168;font-size:14px;line-height:1.4}
#community [data-community-owner-action] .community-owner-action-target strong{display:block;color:#25343a;font-size:20px;line-height:1.3}
#community [data-community-owner-action] .community-sheet-actions button{box-sizing:border-box;min-height:48px;padding:13px 15px;font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#community [data-community-owner-action] .community-sheet-head>button{width:44px;height:44px;border-color:#bfc3bc;background:#f2efe8;color:#25343a}
#community [data-community-owner-action] #communityOwnerActionSaving{margin-top:16px}
#community [data-community-owner-action] [hidden]{display:none!important}
#community [data-community-owner-action] :disabled,#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-action-notice :disabled{opacity:.65;cursor:default}
#community [data-community-owner-action] :focus-visible,#community [data-community-owner-action] h2:focus,#community:is([data-community-screen="members"],[data-community-screen="member"]) [tabindex="-1"]:focus,#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-action-notice :focus-visible{outline:3px solid #167c8b;outline-offset:3px}
@media(max-width:390px){#community [data-community-owner-action] .community-sheet{padding:17px}#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-action-notice{padding:16px}}
@media(min-width:700px){#community .community-sheet-backdrop[data-community-owner-action]{align-items:center}}
@media(forced-colors:active){#community [data-community-owner-action] .community-sheet,#community:is([data-community-screen="members"],[data-community-screen="member"]) .community-owner-action-notice{border:2px solid CanvasText;box-shadow:none}#community [data-community-owner-action] :disabled{color:GrayText}}
@media(prefers-reduced-motion:reduce){#community [data-community-owner-action] *{scroll-behavior:auto!important;transition:none!important}}
