:root {
  --community-card: rgba(8, 19, 34, .88);
  --community-border: rgba(104, 169, 227, .16);
  --community-muted: #7f95ad;
  --community-cyan: #4bdcff;
}

.community-page {
  min-width: 0;
  overflow-x: hidden;
  background: #040914;
}

.community-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: linear-gradient(rgba(75, 144, 205, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 144, 205, .025) 1px, transparent 1px);
  background-size: 52px 52px;
}

.community-ambient i {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
}

.community-ambient i:first-child { top: 2%; right: -180px; background: #146edb; }
.community-ambient i:last-child { bottom: 0; left: -240px; background: #00b5ca; }

.community-main {
  padding: 116px 0 80px;
}

.community-intro {
  margin-bottom: 24px;
  padding: 29px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  border: 1px solid var(--community-border);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(13, 35, 61, .93), rgba(6, 17, 31, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.community-eyebrow,
.community-card-kicker,
.community-feed-heading p,
.community-card-heading p {
  margin: 0 0 8px;
  color: var(--community-cyan);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.community-eyebrow span {
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--community-cyan);
}

.community-intro h1 {
  margin: 0;
  max-width: 720px;
  color: #f3f9ff;
  font-family: Sora, Inter, sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
}

.community-intro > div:first-child > p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: #8da3bc;
  font-size: .94rem;
  line-height: 1.65;
}

.community-intro-metrics {
  display: flex;
  gap: 10px;
}

.community-intro-metrics span {
  min-width: 126px;
  padding: 13px 14px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(94, 168, 229, .14);
  border-radius: 15px;
  background: rgba(3, 12, 23, .42);
}

.community-intro-metrics strong { color: #dff5ff; font-size: .78rem; }
.community-intro-metrics small { color: #6f88a2; font-size: .65rem; }

.community-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  align-items: start;
  gap: 18px;
}

.community-left,
.community-right,
.community-feed-column {
  min-width: 0;
  display: grid;
  gap: 17px;
}

.community-left,
.community-right {
  position: sticky;
  top: 100px;
}

.community-card {
  min-width: 0;
  border: 1px solid var(--community-border);
  border-radius: 21px;
  background: var(--community-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 18px 45px rgba(0, 0, 0, .12);
}

.community-me-card,
.community-filter-card,
.community-suggestions-card,
.community-requests-card,
.community-tip-card {
  padding: 18px;
}

.community-me-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.community-avatar {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(72, 204, 255, .28);
  border-radius: 50%;
  color: #b8efff;
  background: linear-gradient(145deg, #153c5c, #142041);
  font-size: .78rem;
  font-weight: 800;
}

.community-avatar.large { width: 52px; height: 52px; }
.community-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-me-profile > span:last-child { min-width: 0; display: grid; gap: 3px; }
.community-me-profile strong { overflow: hidden; color: #eff8ff; text-overflow: ellipsis; white-space: nowrap; }
.community-me-profile small { color: #7190ad; font-size: .72rem; }
.community-me-card > p { margin: 15px 0; color: #7d94ad; font-size: .77rem; line-height: 1.55; }

.community-quick-actions { display: grid; gap: 8px; }
.community-quick-actions button,
.community-feed-filters button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(104, 169, 227, .13);
  border-radius: 12px;
  color: #93aac2;
  background: rgba(2, 9, 18, .35);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}

.community-quick-actions button:hover,
.community-feed-filters button:hover,
.community-feed-filters button.is-active {
  color: #dff8ff;
  border-color: rgba(65, 201, 255, .3);
  background: rgba(30, 143, 210, .12);
}

.community-quick-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-filter-card h2 { margin: 0 0 13px; color: #eaf5ff; font-size: .95rem; }
.community-feed-filters { display: grid; gap: 7px; }

.community-composer { padding: 20px; }
.community-composer-head { display: flex; align-items: center; gap: 11px; }
.community-composer-head > span:last-child { display: grid; gap: 3px; }
.community-composer-head strong { color: #eaf5ff; font-size: .88rem; }
.community-composer-head small { color: #7188a2; font-size: .7rem; }
.community-composer textarea {
  width: 100%;
  min-height: 112px;
  margin-top: 15px;
  padding: 15px;
  resize: vertical;
  border: 1px solid rgba(104, 169, 227, .14);
  border-radius: 16px;
  outline: 0;
  color: #eaf6ff;
  background: rgba(2, 9, 18, .45);
  font: inherit;
  font-size: .86rem;
  line-height: 1.55;
}
.community-composer textarea:focus { border-color: rgba(68, 205, 255, .42); box-shadow: 0 0 0 3px rgba(68, 205, 255, .07); }

.community-image-preview { position: relative; margin-top: 12px; overflow: hidden; border-radius: 15px; }
.community-image-preview img { width: 100%; max-height: 360px; display: block; object-fit: cover; }
.community-image-preview button { position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: rgba(3, 9, 16, .8); cursor: pointer; }

.community-composer-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.community-composer-actions label { display: flex; align-items: center; gap: 7px; color: #89a2bb; font-size: .74rem; font-weight: 700; cursor: pointer; }
.community-composer-actions label svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-composer-actions > span { margin-left: auto; color: #607890; font-size: .67rem; }
.community-composer-actions > button {
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  color: #001019;
  background: linear-gradient(135deg, #5be5ff, #2ba5ff);
  font-weight: 800;
  cursor: pointer;
}
.community-composer-actions > button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; }

.community-feed-heading { padding: 4px 3px 0; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.community-feed-heading h2 { margin: 0; color: #eaf6ff; font-family: Sora, Inter, sans-serif; font-size: 1.12rem; }
.community-feed-heading button { border: 0; color: #7690aa; background: transparent; font-size: .7rem; cursor: pointer; }
.community-feed { display: grid; gap: 17px; }

.community-post { overflow: hidden; }
.community-post-main { padding: 19px 20px 0; }
.community-post-author { display: flex; align-items: center; gap: 11px; }
.community-post-author > a:first-child { text-decoration: none; }
.community-post-author-copy { min-width: 0; display: grid; gap: 3px; }
.community-post-author-copy strong { display: flex; align-items: center; gap: 5px; color: #edf7ff; font-size: .86rem; }
.community-post-author-copy strong svg { width: 16px; height: 16px; fill: #41cfff; stroke: #41cfff; }
.community-post-author-copy strong a { color: inherit; text-decoration: none; }
.community-post-author-copy strong a:hover { color: #58dfff; }
.community-post-author-copy span { color: #7188a1; font-size: .68rem; }
.community-post-online { width: 7px; height: 7px; border-radius: 50%; background: #2ce49a; box-shadow: 0 0 9px rgba(44, 228, 154, .55); }
.community-post-delete { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 11px; color: #6f869f; background: transparent; cursor: pointer; }
.community-post-delete:hover { color: #ff7897; background: rgba(255, 76, 117, .08); }
.community-post-delete svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-post-text { margin: 16px 0 15px; color: #c7d6e5; font-size: .87rem; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-post-media { margin: 0 -20px; overflow: hidden; border-top: 1px solid rgba(104, 169, 227, .12); border-bottom: 1px solid rgba(104, 169, 227, .12); background: #02070e; }
.community-post-media img { width: 100%; max-height: 620px; display: block; object-fit: contain; }
.community-post-footer { padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community-post-actions { display: flex; align-items: center; gap: 3px; }
.community-post-actions button { min-height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 11px; color: #839ab2; background: transparent; font-size: .73rem; cursor: pointer; }
.community-post-actions button:hover { color: #d9f5ff; background: rgba(58, 172, 233, .08); }
.community-post-actions button.is-liked { color: #ff6389; }
.community-post-actions button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-post-actions button.is-liked svg { fill: currentColor; }
.community-post-footer time { color: #5e748c; font-size: .63rem; }
.community-loading,
.community-empty { padding: 34px; color: #8299b1; text-align: center; }
.community-empty strong { display: block; margin-bottom: 6px; color: #e2f1ff; }

.community-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.community-card-heading h2 { margin: 0; color: #e6f2ff; font-size: .92rem; line-height: 1.35; }
.community-card-heading > span { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #4edbff; background: rgba(50, 185, 239, .1); font-size: .68rem; font-weight: 800; }
.community-card-heading > svg { width: 22px; height: 22px; fill: none; stroke: #4edbff; stroke-width: 1.7; }
.community-people-list { margin-top: 14px; display: grid; gap: 9px; }
.community-person { padding: 9px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 9px; border: 1px solid rgba(104, 169, 227, .1); border-radius: 14px; background: rgba(2, 9, 18, .28); }
.community-person-main { min-width: 0; display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.community-person-copy { min-width: 0; display: grid; gap: 3px; }
.community-person-copy strong { overflow: hidden; color: #dfedfa; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.community-person-copy small { overflow: hidden; color: #6f879f; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.community-person-actions { grid-column: 1 / -1; display: flex; gap: 7px; }
.community-person-actions button { min-height: 33px; flex: 1; border: 1px solid rgba(77, 198, 249, .22); border-radius: 10px; color: #65ddff; background: rgba(39, 158, 216, .08); font-size: .66rem; font-weight: 800; cursor: pointer; }
.community-person-actions button.secondary { color: #8298af; border-color: rgba(114, 161, 209, .13); background: rgba(255, 255, 255, .02); }
.community-list-placeholder { margin: 0; padding: 18px 5px; color: #7189a1; font-size: .73rem; line-height: 1.5; text-align: center; }

.community-tip-card { display: flex; align-items: flex-start; gap: 11px; }
.community-tip-card > span { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #ffcf69; background: rgba(255, 187, 59, .09); }
.community-tip-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-tip-card strong { color: #eaf4ff; font-size: .77rem; }
.community-tip-card p { margin: 5px 0 0; color: #758ca4; font-size: .68rem; line-height: 1.52; }

.community-auth-gate { padding: 32px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 19px; border: 1px solid var(--community-border); border-radius: 24px; background: var(--community-card); }
.gate-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(69, 203, 255, .25); border-radius: 18px; color: #58dfff; background: rgba(49, 169, 226, .08); }
.gate-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-auth-gate p { margin: 0 0 5px; color: #4bdcff; font-size: .65rem; font-weight: 800; letter-spacing: .13em; }
.community-auth-gate h2 { margin: 0 0 6px; color: #edf8ff; font-family: Sora, Inter, sans-serif; }
.community-auth-gate div > span { color: #8299b1; font-size: .83rem; }
.community-auth-gate > button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 13px; color: #00111a; background: linear-gradient(135deg, #5ce5ff, #2fa6ff); font-weight: 800; cursor: pointer; }

.community-toast { position: fixed; right: 20px; bottom: 20px; z-index: 3000; max-width: min(380px, calc(100% - 40px)); padding: 12px 15px; border: 1px solid rgba(71, 210, 255, .28); border-radius: 13px; color: #eaf8ff; background: rgba(6, 19, 34, .96); box-shadow: 0 20px 50px rgba(0, 0, 0, .38); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s ease; }
.community-toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 1180px) {
  .community-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .community-right { position: static; grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1fr; }
  .community-left { top: 92px; }
}

@media (max-width: 860px) {
  .community-main { padding-top: 92px; }
  .community-intro { grid-template-columns: 1fr; }
  .community-intro-metrics { overflow-x: auto; }
  .community-layout { grid-template-columns: 1fr; }
  .community-left { position: static; grid-template-columns: 1fr 1fr; }
  .community-right { grid-template-columns: 1fr 1fr; }
  .community-tip-card { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .community-main { padding: 84px 0 52px; }
  .community-intro { padding: 22px 18px; border-radius: 20px; }
  .community-intro-metrics { margin-right: -18px; padding-right: 18px; }
  .community-intro-metrics span { min-width: 116px; }
  .community-left,
  .community-right { grid-template-columns: 1fr; }
  .community-me-card { display: none; }
  .community-card { border-radius: 17px; }
  .community-composer { padding: 15px; }
  .community-composer-actions { flex-wrap: wrap; }
  .community-composer-actions > span { order: 2; margin-left: 0; }
  .community-composer-actions > button { margin-left: auto; }
  .community-post-main { padding: 15px 15px 0; }
  .community-post-media { margin: 0 -15px; }
  .community-post-actions button span.action-label { display: none; }
  .community-auth-gate { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.community-person-actions .person-profile-link {
  min-height: 33px;
  flex: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 161, 209, .13);
  border-radius: 10px;
  color: #8298af;
  background: rgba(255, 255, 255, .02);
  font-size: .66rem;
  font-weight: 800;
  text-decoration: none;
}

.community-person-actions .person-profile-link:hover {
  color: #dff6ff;
  border-color: rgba(77, 198, 249, .22);
}

.community-post-actions button.is-commenting { color: #56deff; background: rgba(58, 172, 233, .08); }
.community-comments { margin: 0 16px 16px; border: 1px solid rgba(104, 169, 227, .12); border-radius: 16px; background: rgba(2, 9, 18, .32); overflow: hidden; }
.community-comments-toggle { width: 100%; min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; color: #98b1c9; background: transparent; font-size: .72rem; font-weight: 700; cursor: pointer; }
.community-comments-toggle:hover { color: #eef8ff; background: rgba(255,255,255,.03); }
.community-comments-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-comments.is-open .community-comments-toggle svg { transform: rotate(180deg); }
.community-comments-body { padding: 0 14px 14px; border-top: 1px solid rgba(104, 169, 227, .12); }
.community-comments-list { display: grid; gap: 11px; padding-top: 13px; }
.community-comment-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: start; }
.community-comment-avatar { width: 34px; height: 34px; }
.community-comment-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.community-comment-bubble { padding: 11px 12px; border: 1px solid rgba(104, 169, 227, .1); border-radius: 14px; background: rgba(255,255,255,.02); }
.community-comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.community-comment-head strong, .community-comment-head strong a { color: #eef8ff; font-size: .72rem; text-decoration: none; }
.community-comment-head time { color: #7087a0; font-size: .58rem; }
.community-comment-bubble p { margin: 7px 0 0; color: #c7d6e5; font-size: .72rem; line-height: 1.52; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-comment-delete { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #6f869f; background: transparent; cursor: pointer; }
.community-comment-delete:hover { color: #ff7897; background: rgba(255, 76, 117, .08); }
.community-comment-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-comment-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 14px; }
.community-comment-form input { min-width: 0; min-height: 42px; padding: 0 14px; border: 1px solid rgba(104, 169, 227, .14); border-radius: 12px; color: #e9f6ff; background: rgba(2, 9, 18, .72); }
.community-comment-form input:focus { outline: none; border-color: rgba(79, 210, 255, .42); box-shadow: 0 0 0 3px rgba(79, 210, 255, .08); }
.community-comment-form button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; color: #001019; background: linear-gradient(135deg, #5be5ff, #2ba5ff); font-weight: 800; cursor: pointer; }
.community-comments-empty { margin: 0; padding-top: 13px; color: #7d95ae; font-size: .69rem; }
@media (max-width: 620px) {
  .community-comments { margin: 0 12px 14px; border-radius: 14px; }
  .community-comment-form { grid-template-columns: 1fr; }
}

.community-post-author-copy span b { color: #60ddff; font-weight: 700; }
.community-post-options { position: relative; margin-left: auto; }
.community-post-menu-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 11px; color: #7690aa; background: transparent; cursor: pointer; }
.community-post-menu-button:hover { color: #fff; background: rgba(58,172,233,.08); }
.community-post-menu-button svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.community-post-options-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 50; width: 180px; padding: 7px; display: none; border: 1px solid rgba(104,169,227,.18); border-radius: 13px; background: #091522; box-shadow: 0 18px 45px rgba(0,0,0,.45); }
.community-post-options.is-open .community-post-options-menu { display: grid; gap: 4px; }
.community-post-options-menu button { min-height: 38px; padding: 0 11px; border: 0; border-radius: 9px; color: #d7e6f4; background: transparent; text-align: left; font-size: .68rem; font-weight: 700; cursor: pointer; }
.community-post-options-menu button:hover { background: rgba(71,172,241,.08); color: #fff; }
.community-post-options-menu button.danger { color: #ff8ca1; }
.community-post-options-menu button.danger:hover { background: rgba(255,76,117,.08); }
.community-post-editor-dialog { width: min(92vw, 560px); padding: 0; border: 1px solid rgba(104,169,227,.24); border-radius: 22px; color: #eef8ff; background: #081321; box-shadow: 0 30px 90px rgba(0,0,0,.62); }
.community-post-editor-dialog::backdrop { background: rgba(0,5,12,.78); backdrop-filter: blur(7px); }
.community-post-editor-card { padding: 22px; display: grid; gap: 16px; }
.community-post-editor-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.community-post-editor-card header small { color: #56deff; font-size: .58rem; font-weight: 900; letter-spacing: .14em; }
.community-post-editor-card h2 { margin: 5px 0 0; font: 700 1.2rem Sora, Inter, sans-serif; }
.community-post-editor-card header > button { width: 36px; height: 36px; border: 1px solid rgba(104,169,227,.16); border-radius: 10px; color: #dce9f5; background: rgba(255,255,255,.03); font-size: 1.4rem; cursor: pointer; }
.community-post-editor-card label { display: grid; gap: 7px; }
.community-post-editor-card label > span { color: #91a8bf; font-size: .68rem; font-weight: 700; }
.community-post-editor-card textarea, .community-post-editor-card select { width: 100%; border: 1px solid rgba(104,169,227,.16); border-radius: 13px; color: #eef8ff; background: #04101b; }
.community-post-editor-card textarea { min-height: 150px; padding: 13px; resize: vertical; }
.community-post-editor-card select { min-height: 44px; padding: 0 12px; }
.community-post-editor-card textarea:focus, .community-post-editor-card select:focus { outline: none; border-color: rgba(67,207,255,.42); box-shadow: 0 0 0 3px rgba(67,207,255,.08); }
.community-post-editor-card > p { margin: -5px 0 0; color: #7189a3; font-size: .65rem; }
.community-post-editor-card footer { display: flex; justify-content: flex-end; gap: 9px; }
.community-post-editor-card footer button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; color: #001019; background: linear-gradient(135deg,#5be5ff,#2ba5ff); font-weight: 800; cursor: pointer; }
.community-post-editor-card footer button.secondary { color: #a9bfd3; background: rgba(255,255,255,.04); border: 1px solid rgba(104,169,227,.16); }
@media (max-width: 560px) {
  .community-post-editor-card { padding: 17px; }
  .community-post-editor-card footer { display: grid; grid-template-columns: 1fr 1fr; }
}
.community-visibility-control { min-height: 36px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(104,169,227,.14); border-radius: 10px; background: rgba(2,9,18,.48); }
.community-visibility-control svg { width: 15px; height: 15px; fill: none; stroke: #62dbff; stroke-width: 1.7; }
.community-visibility-control select { border: 0; outline: 0; color: #b8cde0; background: transparent; font-size: .64rem; font-weight: 700; cursor: pointer; }
@media (max-width: 620px) { .community-visibility-control { order: 2; flex: 1; } .community-visibility-control select { width: 100%; } }

/* Diretório completo de contas */
.community-directory-card { min-width: 0; }
.community-directory-search {
  min-height: 42px;
  margin-top: 14px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(104,169,227,.14);
  border-radius: 12px;
  color: #6fdfff;
  background: rgba(2,9,18,.48);
}
.community-directory-search:focus-within { border-color: rgba(79,210,255,.4); box-shadow: 0 0 0 3px rgba(79,210,255,.07); }
.community-directory-search svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.community-directory-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: #eaf7ff; background: transparent; font-size: .7rem; }
.community-directory-search input::placeholder { color: #667e96; }
.community-directory-list { max-height: 510px; margin-top: 11px; padding-right: 3px; display: grid; gap: 9px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(77,198,249,.3) transparent; }
.community-directory-person { position: relative; }
.community-directory-online { width: 8px; height: 8px; margin-left: auto; flex: 0 0 auto; border: 2px solid #071321; border-radius: 50%; background: #2ce49a; box-shadow: 0 0 10px rgba(44,228,154,.55); }
.community-directory-role { display: inline-flex; margin-left: 4px; padding: 2px 5px; border-radius: 6px; color: #9aeaff; background: rgba(53,183,239,.1); font-size: .48rem; font-weight: 900; vertical-align: middle; }
.community-directory-person .community-person-actions button,
.community-directory-person .community-person-actions a { min-width: 0; }
@media (max-width: 1180px) {
  .community-directory-card { grid-column: span 2; }
  .community-directory-list { max-height: 380px; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .community-directory-card { grid-column: auto; }
  .community-directory-list { max-height: 520px; grid-template-columns: 1fr; }
}


/* Correção do diretório de contas: conteúdo dentro da grade */
.community-directory-person {
  width: 100%;
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}
.community-directory-main {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.community-directory-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(75, 205, 255, .22);
  background: linear-gradient(145deg, rgba(42, 135, 222, .32), rgba(18, 63, 108, .52));
}
.community-directory-copy {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.community-directory-copy strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: visible;
  color: #edf8ff;
  font-size: .78rem;
  white-space: normal;
}
.community-directory-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-directory-copy small {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #7790a9;
  font-size: .62rem;
  line-height: 1.35;
  white-space: nowrap;
}
.community-directory-copy small span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.community-directory-online {
  align-self: center;
  margin: 0;
}
.community-directory-actions {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.community-directory-actions button,
.community-directory-actions a {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1180px) and (min-width: 621px) {
  .community-directory-person { min-height: 124px; }
}
@media (max-width: 420px) {
  .community-directory-main { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; }
  .community-directory-avatar { width: 40px; height: 40px; min-width: 40px; }
  .community-directory-actions { grid-template-columns: 1fr; }
}
