.community-nav-link {
  position: relative;
}

.community-nav-dot {
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: #ff0a5e;
  box-shadow: 0 0 10px rgba(255, 10, 94, .9);
}

.community-page {
  --community-border: rgba(255, 255, 255, .09);
  --community-soft: rgba(255, 255, 255, .045);
  --community-accent: #ff0a5e;
  --community-text: #f5f6f8;
}

.community-hero {
  margin-bottom: 18px;
}

.community-access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 10, 94, .35);
  border-radius: 999px;
  color: #ff8bac;
  background: rgba(255, 10, 94, .08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.community-development {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  min-height: 520px;
  padding: 74px 24px;
  text-align: center;
  isolation: isolate;
}

.community-development::before,
.community-development::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.community-development::before {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}

.community-development::after {
  background: radial-gradient(circle at 50% 42%, rgba(255, 10, 94, .15), transparent 34%);
}

.community-development-glow {
  position: absolute;
  top: -160px;
  width: 520px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 10, 94, .18);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.community-development-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 10, 94, .48);
  border-radius: 24px;
  color: #ff4d86;
  background: linear-gradient(145deg, rgba(255, 10, 94, .18), rgba(255,255,255,.025));
  box-shadow: 0 20px 70px rgba(255, 10, 94, .16), inset 0 1px rgba(255,255,255,.1);
}

.community-development-icon .rx-icon {
  width: 34px;
  height: 34px;
}

.community-development h2 {
  max-width: 720px;
  margin: 7px 0 12px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.community-development > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted, #9499a5);
  line-height: 1.75;
}

.community-development > small {
  margin-top: 23px;
  color: #707581;
}

.community-roadmap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.community-roadmap span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--community-border);
  border-radius: 12px;
  color: #d9dce3;
  background: rgba(8, 9, 12, .62);
}

.community-roadmap .rx-icon {
  width: 16px;
  height: 16px;
  color: #ff3d79;
}

.community-app {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 14px;
  height: min(720px, calc(100vh - 190px));
  min-height: 0;
}

.community-sidebar,
.community-chat {
  padding: 0;
  overflow: hidden;
}

.community-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  background:
    linear-gradient(160deg, rgba(255, 10, 94, .055), transparent 32%),
    rgba(9, 10, 14, .94);
}

.community-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px;
  border-bottom: 1px solid var(--community-border);
}

.community-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, #ff0a5e, #8d123f);
  box-shadow: 0 10px 30px rgba(255, 10, 94, .24);
  font-family: "Oswald", sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.community-sidebar-brand > div {
  min-width: 0;
}

.community-sidebar-brand strong,
.community-sidebar-brand small {
  display: block;
}

.community-sidebar-brand strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-sidebar-brand small {
  margin-top: 3px;
  color: #858a95;
  font-size: 11px;
}

.community-sidebar-brand small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #27d17f;
  box-shadow: 0 0 8px rgba(39, 209, 127, .8);
}

.community-sidebar-brand small b {
  color: #b7bbc4;
}

.community-side-label {
  padding: 17px 17px 8px;
  color: #666c77;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.community-rooms {
  display: grid;
  gap: 4px;
  padding: 0 9px;
}

.community-room {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #a8adb8;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: .18s ease;
}

.community-room:hover {
  color: #f2f3f5;
  background: rgba(255,255,255,.04);
}

.community-room.active {
  border-color: rgba(255, 10, 94, .24);
  color: white;
  background: linear-gradient(90deg, rgba(255, 10, 94, .13), rgba(255, 10, 94, .035));
}

.community-room > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  color: #f35b89;
  background: rgba(255,255,255,.035);
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.community-room div {
  min-width: 0;
}

.community-room strong,
.community-room small {
  display: block;
}

.community-room strong {
  font-size: 12px;
}

.community-room small {
  overflow: hidden;
  margin-top: 2px;
  color: #656b76;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-members-label {
  margin-top: 4px;
  border-top: 1px solid var(--community-border);
}

.community-members {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  padding: 0 9px 12px;
  overflow-y: auto;
}

.community-member {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  color: #adb2bd;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.community-member:hover {
  color: white;
  background: rgba(255,255,255,.04);
}

.community-member-avatar,
.community-mini-avatar,
.community-message-avatar,
.community-preview-avatar,
.community-view-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #731434, #24131c);
  font-family: "Oswald", sans-serif;
  font-weight: 700;
}

.community-member-avatar {
  width: 31px;
  height: 31px;
  font-size: 13px;
}

.community-member-avatar img,
.community-mini-avatar img,
.community-message-avatar img,
.community-preview-avatar img,
.community-view-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-member-avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #111217;
  border-radius: 50%;
  background: #555b65;
}

.community-member.online .community-member-avatar i {
  background: #27d17f;
}

.community-member > span:last-child {
  min-width: 0;
}

.community-member strong,
.community-member small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-member strong {
  font-size: 11px;
}

.community-member small {
  margin-top: 2px;
  color: #626874;
  font-size: 9px;
}

.community-sidebar-footer {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.community-profile-button,
.community-awards-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--community-border);
  color: #dfe2e8;
  text-align: left;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.community-profile-button:hover,
.community-awards-button:hover {
  background: rgba(255, 10, 94, .07);
}

.community-awards-button-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: #ffad32;
  background: rgba(255, 173, 50, .12);
  font-size: 15px;
}

.community-mini-avatar {
  width: 34px;
  height: 34px;
}

.community-profile-button > span:nth-child(2),
.community-awards-button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.community-profile-button strong,
.community-profile-button small,
.community-awards-button strong,
.community-awards-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-profile-button strong,
.community-awards-button strong {
  font-size: 11px;
}

.community-profile-button small,
.community-awards-button small {
  margin-top: 2px;
  color: #686e79;
  font-size: 9px;
}

.community-profile-button .rx-icon {
  width: 16px;
  height: 16px;
  color: #7e8490;
}

.community-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 640px;
  background:
    radial-gradient(circle at 70% 0, rgba(255, 10, 94, .055), transparent 28%),
    rgba(9, 10, 14, .91);
}

.community-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--community-border);
}

.community-chat-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.community-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.community-mobile-editor-btn {
  display: none;
}

.community-room-sign {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 10, 94, .26);
  border-radius: 11px;
  color: #ff4b82;
  background: rgba(255, 10, 94, .075);
  font-family: "Oswald", sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.community-chat-head h2,
.community-chat-head p {
  margin: 0;
}

.community-chat-head h2 {
  font-size: 15px;
}

.community-chat-head p {
  margin-top: 3px;
  color: #686e78;
  font-size: 10px;
}

.community-message-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.community-load-more {
  display: block;
  margin: 12px auto 3px;
  padding: 7px 13px;
  border: 1px solid var(--community-border);
  border-radius: 999px;
  color: #9da2ad;
  background: rgba(255,255,255,.035);
  font-size: 10px;
  cursor: pointer;
}

.community-messages {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 11px 18px;
}

.community-message {
  position: relative;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.community-message:hover {
  border-color: rgba(255,255,255,.045);
  background: rgba(255,255,255,.025);
}

.community-message.highlight {
  animation: community-message-highlight 1.3s ease;
}

@keyframes community-message-highlight {
  0%, 100% { background: transparent; }
  30% { background: rgba(255, 10, 94, .15); }
}

.community-message-avatar {
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.community-message-main {
  min-width: 0;
}

.community-message-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
}

.community-message-name {
  border: 0;
  padding: 0;
  color: #f5f6f8;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.community-message-icon {
  color: #ff477e;
  font-size: 12px;
}

.community-message-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 1px 6px;
  color: white;
  background: #7d1238;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
}

.community-staff-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 1px 6px;
  border-radius: 5px;
  color: #ff7ca3;
  background: rgba(255, 10, 94, .11);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.community-message-time {
  color: #5d636e;
  font-size: 9px;
}

.community-message-edited {
  color: #5d636e;
  font-size: 8px;
}

.community-message-reply {
  display: block;
  width: 100%;
  margin: 5px 0 7px;
  padding: 6px 9px;
  border: 0;
  border-left: 2px solid rgba(255, 10, 94, .7);
  border-radius: 0 8px 8px 0;
  color: #8e949f;
  text-align: left;
  background: rgba(255, 10, 94, .045);
  cursor: pointer;
}

.community-message-reply strong,
.community-message-reply span {
  display: block;
}

.community-message-reply strong {
  margin-bottom: 2px;
  color: #d0d3da;
  font-size: 9px;
}

.community-message-reply span {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-message-body {
  margin: 3px 0 0;
  color: #d4d7dd;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.community-message-actions {
  position: absolute;
  top: -10px;
  right: 8px;
  display: none;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--community-border);
  border-radius: 8px;
  background: #15161c;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.community-message:hover .community-message-actions {
  display: flex;
}

.community-message-actions button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 6px;
  color: #838995;
  background: transparent;
  cursor: pointer;
}

.community-message-actions button:hover {
  color: white;
  background: rgba(255,255,255,.07);
}

.community-message-actions button.danger:hover {
  color: #ff6d8e;
  background: rgba(255, 10, 94, .1);
}

.community-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.community-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid var(--community-border);
  border-radius: 8px;
  color: #aeb3bd;
  background: rgba(255,255,255,.03);
  font-size: 11px;
  cursor: pointer;
}

.community-reaction.active {
  border-color: rgba(255, 10, 94, .38);
  color: white;
  background: rgba(255, 10, 94, .1);
}

.community-reaction b {
  font-size: 9px;
}

.community-reaction-add {
  color: #747a85;
}

.community-reaction-picker {
  display: none;
  gap: 3px;
  margin-top: 6px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--community-border);
  border-radius: 9px;
  background: #15161c;
}

.community-message.reaction-open .community-reaction-picker {
  display: flex;
}

.community-reaction-picker button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.community-reaction-picker button:hover {
  background: rgba(255,255,255,.07);
}

.community-empty {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 30px;
  color: #6f7580;
  text-align: center;
}

.community-empty strong {
  display: block;
  margin-bottom: 5px;
  color: #b4b8c1;
}

.community-reply-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--community-border);
  border-left: 3px solid #ff0a5e;
  background: rgba(255, 10, 94, .045);
}

.community-reply-preview > div {
  min-width: 0;
  flex: 1;
}

.community-reply-preview span,
.community-reply-preview strong,
.community-reply-preview small {
  display: block;
}

.community-reply-preview span {
  color: #676d78;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.community-reply-preview strong {
  margin-top: 2px;
  color: #e4e6eb;
  font-size: 10px;
}

.community-reply-preview small {
  overflow: hidden;
  margin-top: 2px;
  color: #888e99;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-composer {
  padding: 11px 13px 12px;
  border-top: 1px solid var(--community-border);
  background: rgba(5, 6, 9, .68);
}

.community-composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 150px;
  resize: none;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  outline: none;
  color: #f0f1f4;
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.community-composer textarea:focus {
  border-color: rgba(255, 10, 94, .38);
  box-shadow: 0 0 0 3px rgba(255, 10, 94, .06);
}

.community-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.community-composer-foot small {
  color: #565c67;
  font-size: 8px;
}

.community-composer-foot kbd {
  padding: 1px 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  color: #7b818d;
  background: rgba(255,255,255,.035);
  font: inherit;
}

.community-composer-foot .btn {
  min-height: 34px;
  padding: 0 13px;
  font-size: 10px;
}

.community-composer-foot .rx-icon {
  width: 14px;
  height: 14px;
}

.community-profile-editor {
  min-width: 0;
  max-height: min(720px, calc(100vh - 190px));
  overflow-y: auto;
  background:
    linear-gradient(160deg, rgba(255, 10, 94, .07), transparent 25%),
    rgba(9, 10, 14, .95);
}

.community-editor-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px;
  border-bottom: 1px solid var(--community-border);
  background: rgba(10, 11, 15, .94);
  backdrop-filter: blur(14px);
}

.community-editor-head h2 {
  margin: 2px 0 0;
  font-size: 14px;
}

.community-profile-preview {
  position: relative;
  overflow: hidden;
  margin: 13px;
  padding: 0 13px 13px;
  border: 1px solid rgba(255, 10, 94, .2);
  border-radius: 15px;
  background: #111218;
}

.community-preview-cover {
  height: 62px;
  margin: 0 -13px;
  background:
    linear-gradient(135deg, rgba(255, 10, 94, .38), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #181019;
  background-size: auto, 22px 22px, 22px 22px, auto;
}

.community-preview-main {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: -24px;
}

.community-preview-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid #111218;
  font-size: 22px;
}

.community-preview-identity {
  min-width: 0;
  padding-bottom: 2px;
}

.community-preview-identity > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.community-preview-identity strong {
  display: inline-block;
  overflow: hidden;
  max-width: 174px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.community-preview-identity > b {
  display: inline-flex;
  margin-top: 5px;
  padding: 2px 7px;
  font-size: 8px;
}

.community-profile-preview > p {
  min-height: 34px;
  margin: 12px 0;
  color: #949aa5;
  font-size: 10px;
  line-height: 1.55;
}

.community-preview-stats {
  display: flex;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--community-border);
  color: #777d88;
  font-size: 9px;
}

.community-preview-stats b {
  color: #e4e6eb;
}

.community-profile-form {
  display: grid;
  gap: 10px;
  padding: 0 13px 16px;
}

.community-profile-form > label {
  display: grid;
  gap: 5px;
}

.community-profile-form label > span,
.community-privacy > strong {
  color: #858b96;
  font-size: 9px;
  font-weight: 800;
}

.community-profile-form input:not([type="checkbox"]):not([type="color"]):not([type="range"]),
.community-profile-form textarea,
.community-profile-form select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  outline: none;
  color: #e8e9ed;
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: 10px;
}

.community-profile-form textarea {
  resize: vertical;
}

.community-profile-form input:focus,
.community-profile-form textarea:focus,
.community-profile-form select:focus {
  border-color: rgba(255, 10, 94, .38);
}

.community-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.community-color-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}

.community-color-grid input[type="color"] {
  width: 28px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.community-profile-form input[type="range"] {
  width: 100%;
  accent-color: #ff0a5e;
}

.community-privacy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.community-privacy > strong {
  width: 100%;
}

.community-privacy label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #a3a8b2;
  font-size: 9px;
  white-space: nowrap;
}

.community-privacy input {
  accent-color: #ff0a5e;
}

.community-form-note {
  margin: 0;
  color: #565c67;
  font-size: 8px;
  line-height: 1.5;
}

.community-profile-view {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 7, .76);
  backdrop-filter: blur(12px);
}

.community-profile-view-card {
  position: relative;
  overflow: hidden;
  width: min(460px, 100%);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: #101116;
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
}

.community-profile-view-cover {
  height: 126px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 127, 44, .16), transparent 30%),
    linear-gradient(135deg, rgba(255, 10, 94, .42), transparent 56%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #181018;
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}

.community-profile-view-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.community-profile-view-body {
  padding: 0 22px 22px;
}

.community-view-avatar {
  width: 84px;
  height: 84px;
  margin-top: -42px;
  border: 4px solid #101116;
  font-size: 30px;
}

.community-profile-view-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.community-profile-view-name h2 {
  margin: 0;
  font-size: 23px;
}

.community-profile-view-name > b {
  padding: 3px 8px;
  font-size: 9px;
}

.community-profile-view-body > p {
  margin: 13px 0;
  color: #9ca1ac;
  font-size: 12px;
  line-height: 1.6;
}

.community-view-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0;
}

.community-view-details div {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}

.community-view-details span,
.community-view-details strong {
  display: block;
}

.community-view-details span {
  color: #666c77;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.community-view-details strong {
  overflow: hidden;
  margin-top: 4px;
  color: #dfe2e7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-view-actions {
  display: flex;
  gap: 8px;
}

.community-view-actions .btn {
  flex: 1;
}

.community-composer-input {
  position: relative;
}

.community-mention-suggestions {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(255, 10, 94, .25);
  border-radius: 14px;
  background: rgba(15, 16, 22, .98);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .48);
  backdrop-filter: blur(16px);
}

.community-mention-suggestions > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: #e7e9ee;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.community-mention-suggestions > button:is(:hover, .active) {
  background: linear-gradient(90deg, rgba(255, 10, 94, .15), rgba(255, 10, 94, .035));
}

.community-mention-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.community-mention-suggestions span,
.community-mention-suggestions strong,
.community-mention-suggestions small {
  display: block;
  min-width: 0;
}

.community-mention-suggestions strong {
  font-size: 11px;
}

.community-mention-suggestions small {
  margin-top: 2px;
  color: #777d89;
  font-size: 9px;
}

.community-mention {
  display: inline;
  padding: 0;
  border: 0;
  color: #ff5c91;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.community-mention:hover {
  color: #ff94b6;
  text-decoration: underline;
}

.nickname-font-accent { font-family: "Oswald", sans-serif !important; letter-spacing: .025em; }
.nickname-font-mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace !important; }
.nickname-font-serif { font-family: Georgia, "Times New Roman", serif !important; }
.nickname-animation-glow { animation: community-nickname-glow 2.3s ease-in-out infinite; }
.nickname-animation-shimmer {
  color: transparent !important;
  background: linear-gradient(100deg, var(--nickname-color), #fff, var(--nickname-color));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: community-nickname-shimmer 2.8s linear infinite;
}
.nickname-animation-pulse { animation: community-nickname-pulse 2s ease-in-out infinite; }
.nickname-animation-gradient {
  color: transparent !important;
  background: linear-gradient(90deg, var(--nickname-color), var(--nickname-shadow), var(--nickname-color));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: community-nickname-shimmer 3.2s linear infinite;
}

@keyframes community-nickname-glow {
  50% { filter: drop-shadow(0 0 5px var(--nickname-shadow)); }
}

@keyframes community-nickname-shimmer {
  to { background-position: -200% 0; }
}

@keyframes community-nickname-pulse {
  50% { opacity: .72; }
}

.avatar-shape-rounded { border-radius: 13px !important; }
.avatar-shape-hex { border-radius: 0 !important; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.avatar-frame-solid { border: 2px solid var(--avatar-frame) !important; }
.avatar-frame-neon { border: 2px solid var(--avatar-frame) !important; box-shadow: 0 0 12px color-mix(in srgb, var(--avatar-frame) 68%, transparent); }
.avatar-frame-gradient,
.avatar-frame-animated {
  border: 2px solid transparent !important;
  background:
    linear-gradient(#171018, #171018) padding-box,
    linear-gradient(135deg, var(--avatar-frame), var(--avatar-frame-secondary)) border-box !important;
}
.avatar-frame-double { border: 2px solid var(--avatar-frame) !important; box-shadow: 0 0 0 2px #0d0e13, 0 0 0 3px var(--avatar-frame-secondary); }
.avatar-frame-animated { animation: community-avatar-frame 2.1s ease-in-out infinite; }
.avatar-animation-breathe { animation: community-avatar-breathe 2.8s ease-in-out infinite; }
.avatar-animation-pulse { animation: community-avatar-frame 1.6s ease-in-out infinite; }
.avatar-animation-rotate { animation: community-avatar-rotate 7s linear infinite; }

@keyframes community-avatar-frame {
  50% { box-shadow: 0 0 18px color-mix(in srgb, var(--avatar-frame) 72%, transparent); }
}
@keyframes community-avatar-breathe {
  50% { transform: scale(1.045); }
}
@keyframes community-avatar-rotate {
  to { filter: hue-rotate(360deg); }
}

body.community-modal-open,
body.community-action-open {
  overflow: hidden;
}

.community-profile-editor {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: grid;
  place-items: center;
  width: auto;
  min-width: 0;
  max-height: none;
  padding: 24px;
  overflow: auto;
  background: rgba(3, 4, 7, .82);
  backdrop-filter: blur(18px);
}

.community-editor-dialog {
  overflow: hidden;
  width: min(1120px, 100%);
  max-height: min(880px, calc(100vh - 48px));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 10, 94, .1), transparent 32%),
    #0b0c10;
  box-shadow: 0 40px 130px rgba(0, 0, 0, .72);
}

.community-editor-head {
  position: relative;
  top: auto;
  padding: 20px 24px;
}

.community-editor-head h2 {
  margin: 3px 0;
  font-size: 24px;
}

.community-editor-head p {
  margin: 0;
  color: #777d89;
  font-size: 11px;
}

.community-editor-body {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  overflow-y: auto;
  max-height: calc(min(880px, 100vh - 48px) - 88px);
}

.community-editor-preview-column {
  padding: 22px;
  border-right: 1px solid var(--community-border);
  background: rgba(255, 255, 255, .015);
}

.community-editor-sticky {
  position: sticky;
  top: 0;
}

.community-editor-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.community-editor-section-title span {
  color: #f2f3f6;
  font-size: 12px;
  font-weight: 850;
}

.community-editor-section-title small {
  color: #666c78;
  font-size: 8px;
}

.community-profile-preview {
  margin: 0 0 22px;
  padding: 0 16px 16px;
  border-radius: 18px;
}

.community-preview-cover {
  height: 105px;
  margin: 0 -16px;
}

.community-profile-preview.theme-emerald .community-preview-cover,
.community-profile-view-card.theme-emerald .community-profile-view-cover { background-color: #0d211b; filter: hue-rotate(95deg); }
.community-profile-preview.theme-gold .community-preview-cover,
.community-profile-view-card.theme-gold .community-profile-view-cover { background-color: #241a0d; filter: hue-rotate(30deg) saturate(.9); }
.community-profile-preview.theme-ice .community-preview-cover,
.community-profile-view-card.theme-ice .community-profile-view-cover { background-color: #0d1d24; filter: hue-rotate(180deg); }
.community-profile-preview.theme-violet .community-preview-cover,
.community-profile-view-card.theme-violet .community-profile-view-cover { background-color: #1d1027; filter: hue-rotate(275deg); }
.community-profile-preview.theme-graphite .community-preview-cover,
.community-profile-view-card.theme-graphite .community-profile-view-cover { background-color: #191b20; filter: grayscale(.85); }

.community-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.community-preset-grid button {
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #9ca2ad;
  background: rgba(255, 255, 255, .025);
  font-size: 8px;
  cursor: pointer;
}

.community-preset-grid button:is(:hover, .active) {
  border-color: rgba(255, 10, 94, .42);
  color: white;
  background: rgba(255, 10, 94, .08);
}

.community-preset-grid i {
  display: block;
  height: 19px;
  margin-bottom: 5px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff0a5e, #ff7f2c);
}
.community-preset-grid [data-community-style-preset="emerald"] i { background: linear-gradient(90deg, #0daf77, #73f5b8); }
.community-preset-grid [data-community-style-preset="gold"] i { background: linear-gradient(90deg, #d98e20, #ffe09a); }
.community-preset-grid [data-community-style-preset="ice"] i { background: linear-gradient(90deg, #278dc0, #dff8ff); }
.community-preset-grid [data-community-style-preset="violet"] i { background: linear-gradient(90deg, #8d3bd0, #ff4aa2); }
.community-preset-grid [data-community-style-preset="graphite"] i { background: linear-gradient(90deg, #3b3f48, #aeb2bb); }

.community-profile-form {
  gap: 13px;
  padding: 22px 24px 28px;
}

.community-form-section {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 15px;
  background: rgba(255, 255, 255, .022);
}

.community-form-section > label,
.community-form-grid > label {
  display: grid;
  gap: 5px;
}

.community-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.community-form-grid.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-prefix-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}

.community-prefix-input:focus-within {
  border-color: rgba(255, 10, 94, .38);
}

.community-prefix-input i {
  padding-left: 10px;
  color: #ff4e86;
  font-style: normal;
  font-weight: 900;
}

.community-prefix-input input {
  border: 0 !important;
  background: transparent !important;
}

.community-icon-picker {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 7px;
}

.community-icon-picker button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #aeb3bd;
  background: rgba(255, 255, 255, .025);
  font-size: 15px;
  cursor: pointer;
}

.community-icon-picker button:is(:hover, .active) {
  border-color: rgba(255, 10, 94, .52);
  color: #ff5b8f;
  background: rgba(255, 10, 94, .11);
  box-shadow: 0 0 0 2px rgba(255, 10, 94, .06);
}

.community-form-actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 0 0;
  background: linear-gradient(transparent, #0b0c10 28%);
}

.community-action-modal {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 7, .82);
  backdrop-filter: blur(16px);
}

.community-action-dialog {
  width: min(500px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 10, 94, .12), transparent 36%),
    #101116;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .65);
}

.community-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 10, 94, .25);
  border-radius: 13px;
  color: #ff5b8f;
  background: rgba(255, 10, 94, .1);
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.community-action-dialog h2 {
  margin: 5px 0 7px;
  font-size: 21px;
}

.community-action-dialog > p {
  margin: 0 0 16px;
  color: #858b96;
  font-size: 11px;
  line-height: 1.6;
}

.community-action-dialog textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(255, 10, 94, .3);
  border-radius: 12px;
  outline: none;
  color: #f0f1f4;
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.community-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.community-action-buttons .btn.danger {
  color: white;
  border-color: #d83a52;
  background: linear-gradient(135deg, #e23d58, #9e2034);
}

@media (prefers-reduced-motion: reduce) {
  [class*="nickname-animation-"],
  [class*="avatar-animation-"],
  .avatar-frame-animated {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .community-app {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .community-editor-body {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .community-form-grid.triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .community-hero {
    align-items: flex-start;
  }

  .community-app {
    grid-template-columns: 1fr;
    height: auto;
  }

  .community-profile-editor {
    padding: 0;
  }

  .community-editor-dialog {
    width: 100%;
    min-height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .community-editor-head {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 15px 16px;
  }

  .community-editor-head h2 {
    font-size: 19px;
  }

  .community-editor-body {
    display: block;
    max-height: calc(100vh - 75px);
  }

  .community-editor-preview-column {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--community-border);
  }

  .community-editor-sticky {
    position: static;
  }

  .community-profile-form {
    padding: 16px;
  }

  .community-form-grid,
  .community-form-grid.triple {
    grid-template-columns: 1fr;
  }

  .community-icon-picker {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .community-editor-section-title small {
    display: none;
  }

  .community-sidebar {
    min-height: auto;
  }

  .community-sidebar-brand,
  .community-side-label,
  .community-members,
  .community-profile-button {
    display: none;
  }

  .community-mobile-editor-btn {
    display: grid;
  }

  .community-rooms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
  }

  .community-room {
    justify-content: center;
    padding: 8px 5px;
  }

  .community-room > span {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .community-room small {
    display: none;
  }

  .community-chat {
    min-height: calc(100vh - 235px);
  }

  .community-message {
    grid-template-columns: 34px minmax(0, 1fr);
    padding-inline: 5px;
  }

  .community-message-avatar {
    width: 33px;
    height: 33px;
  }

  .community-message-actions {
    position: static;
    display: flex;
    width: max-content;
    margin-top: 6px;
  }

  .community-composer-foot small {
    display: none;
  }

  .community-composer-foot {
    justify-content: flex-end;
  }
}

/* ---------------------------------------------------------------------- */
/* Уровень, серия визитов, награды, стена профиля                          */
/* ---------------------------------------------------------------------- */

.community-level-block {
  display: grid;
  gap: 5px;
  margin: 4px 0 2px;
}

.community-level-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #f5f6f8;
}

.community-level-head small {
  font-weight: 600;
  font-size: 9px;
  color: #7a808b;
}

.community-level-bar {
  position: relative;
  height: 6px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.community-level-bar > i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #ff0a5e, #ff7f2c);
  transition: width .3s ease;
}

.community-streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 140, 20, .12);
  color: #ffb15c;
  font-size: 9px;
  font-weight: 700;
}

.community-awards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.community-award-chip {
  --award-color: #ff0a5e;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--award-color) 45%, transparent);
  background: color-mix(in srgb, var(--award-color) 14%, transparent);
  color: #f5f6f8;
  font-size: 9px;
  font-weight: 700;
}

.community-award-chip > b {
  color: var(--award-color);
  font-size: 11px;
}

.community-award-remove {
  border: 0;
  background: transparent;
  color: #9aa0ab;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 2px;
}

.community-award-remove:hover {
  color: #ff477e;
}

.community-award-add {
  padding: 4px 10px;
  border: 1px dashed var(--community-border);
  border-radius: 999px;
  background: transparent;
  color: #9aa0ab;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.community-award-add:hover {
  border-color: #ff0a5e;
  color: #f5f6f8;
}

.community-awards-empty {
  font-size: 9px;
  color: #686e79;
}

.community-award-picker {
  display: grid;
  gap: 4px;
  margin: -2px 0 10px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--community-border);
  background: rgba(0,0,0,.35);
  max-height: 220px;
  overflow-y: auto;
}

.community-award-picker.hidden {
  display: none;
}

.community-award-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dfe2e8;
  text-align: left;
  cursor: pointer;
}

.community-award-option:hover {
  background: rgba(255,255,255,.06);
}

.community-award-option b {
  font-size: 14px;
}

.community-award-option span {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 700;
}

.community-award-option small {
  font-weight: 500;
  color: #7a808b;
  font-size: 8px;
}

.community-wall {
  margin-top: 4px;
}

.community-wall-form {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.community-wall-form textarea {
  resize: vertical;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--community-border);
  background: rgba(0,0,0,.35);
  color: #f5f6f8;
  font: inherit;
  font-size: 11px;
}

.community-wall-form button {
  justify-self: end;
}

.community-wall-list {
  display: grid;
  gap: 8px;
}

.community-wall-post {
  position: relative;
  display: flex;
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--community-border);
  background: rgba(255,255,255,.02);
}

.community-wall-post-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.community-wall-post-body {
  min-width: 0;
  flex: 1;
}

.community-wall-post-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.community-wall-post-head small {
  color: #686e79;
  font-size: 8px;
}

.community-wall-post-body p {
  margin: 0;
  color: #cfd2d9;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}

.community-wall-post-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
}

/* Кнопки в сайдбаре: награды + редактор профиля (см. community-sidebar-footer) */

/* Модалка каталога наград */
.community-awards-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 8, .72);
  backdrop-filter: blur(6px);
}

.community-awards-modal-card {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--community-border);
  background: #0c0d12;
}

.community-awards-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.community-awards-modal-card h3 {
  margin: 0;
  font-size: 15px;
}

.community-awards-modal-hint {
  margin: 0 0 12px;
  color: #7a808b;
  font-size: 10px;
  line-height: 1.5;
}

.community-awards-catalog {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.community-award-catalog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--community-border);
  background: rgba(255,255,255,.02);
}

.community-award-catalog-row > b {
  font-size: 18px;
  width: 26px;
  text-align: center;
}

.community-award-catalog-row > span {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.community-award-catalog-row strong {
  font-size: 11px;
}

.community-award-catalog-row small {
  color: #7a808b;
  font-size: 9px;
}

.community-award-create-form {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--community-border);
}

.community-award-create-form label {
  display: grid;
  gap: 4px;
  font-size: 9px;
  color: #9aa0ab;
}

.community-award-create-form input,
.community-award-create-form select,
.community-award-create-form textarea {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--community-border);
  background: rgba(0,0,0,.35);
  color: #f5f6f8;
  font: inherit;
  font-size: 11px;
}

.community-award-create-form input[type="color"] {
  padding: 2px;
  height: 32px;
}

/* Public community channels, emoji/sticker picker and global chat */
.community-room-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 11px;
}

.community-room-row.active {
  background: linear-gradient(90deg, rgba(255, 10, 94, .07), transparent);
}

.community-room-delete {
  width: 26px;
  height: 26px;
  margin-right: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #626873;
  background: transparent;
  cursor: pointer;
}

.community-room-delete:hover {
  border-color: rgba(255, 10, 94, .25);
  color: #ff6d8e;
  background: rgba(255, 10, 94, .08);
}

.community-room-create {
  width: 100%;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px dashed rgba(255, 10, 94, .26);
  border-radius: 10px;
  color: #a4a9b3;
  text-align: left;
  background: rgba(255, 10, 94, .035);
  font-size: 10px;
  cursor: pointer;
}

.community-room-create:hover {
  color: #fff;
  background: rgba(255, 10, 94, .09);
}

.community-composer textarea {
  padding-right: 50px;
}

.community-media-trigger {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: #89909b;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}

.community-media-trigger:hover,
.community-media-trigger[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 10, 94, .12);
}

.community-media-picker {
  position: absolute;
  z-index: 35;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(390px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 10, 94, .26);
  border-radius: 15px;
  background: rgba(13, 14, 19, .98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(18px);
}

.community-media-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.community-media-tabs button {
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: #777e89;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.community-media-tabs button.active,
.community-media-tabs button:hover {
  color: #fff;
  background: rgba(255, 10, 94, .12);
}

.community-media-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  max-height: 250px;
  padding: 9px;
  overflow-y: auto;
}

.community-emoji-option,
.community-custom-emoji-option,
.community-sticker-option {
  min-width: 0;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.community-emoji-option {
  aspect-ratio: 1;
  font-size: 21px;
}

.community-emoji-option:hover,
.community-custom-emoji-option:hover,
.community-sticker-option:hover {
  background: rgba(255, 10, 94, .11);
  transform: translateY(-1px);
}

.community-custom-emoji-option {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 64px;
  padding: 7px 4px;
}

.community-custom-emoji-option small {
  overflow: hidden;
  max-width: 100%;
  color: #747b86;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-custom-emoji {
  display: inline-grid;
  place-items: center;
  min-width: 1.65em;
  height: 1.65em;
  margin: 0 .08em;
  padding: 0 .28em;
  border: 1px solid rgba(255, 10, 94, .4);
  border-radius: .52em;
  color: #fff;
  background: linear-gradient(135deg, #ff0a5e, #7d1238);
  box-shadow: 0 0 13px rgba(255, 10, 94, .22);
  font-family: "Oswald", sans-serif;
  font-size: .92em;
  font-weight: 800;
  line-height: 1;
  vertical-align: -.2em;
}

.community-media-grid:has(.community-sticker-option) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-sticker-option {
  padding: 5px;
}

.community-message-sticker {
  margin-top: 7px;
}

.community-sticker {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  aspect-ratio: 1.22;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px 12px 28px 12px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), transparent 35%),
    radial-gradient(circle at 75% 20%, rgba(255, 127, 44, .45), transparent 34%),
    linear-gradient(145deg, #7d1238, #170911 72%);
  box-shadow: 0 14px 34px rgba(0,0,0,.34), 0 0 28px rgba(255,10,94,.12);
  transform: rotate(-1.5deg);
}

.community-sticker::before,
.community-sticker::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 2px;
  background: rgba(255,255,255,.14);
  transform: rotate(-35deg);
}

.community-sticker::before { left: -16px; top: 25px; }
.community-sticker::after { right: -20px; bottom: 24px; }
.community-sticker i { color: rgba(255,255,255,.55); font-size: 8px; font-style: normal; letter-spacing: .22em; }
.community-sticker b { margin: 4px 0 1px; font-family: "Oswald", sans-serif; font-size: 34px; line-height: 1; text-shadow: 0 0 18px rgba(255,255,255,.28); }
.community-sticker small { max-width: 120px; color: rgba(255,255,255,.68); font-size: 8px; text-align: center; }
.community-sticker.compact { width: 104px; border-radius: 20px 9px 20px 9px; }
.community-sticker.compact b { font-size: 23px; }
.community-sticker.compact small { font-size: 7px; }
.community-sticker.sticker-win { background: radial-gradient(circle at 76% 18%, rgba(255,220,84,.48), transparent 33%), linear-gradient(145deg, #5b4510, #151106 75%); }
.community-sticker.sticker-car { background: radial-gradient(circle at 76% 18%, rgba(68,156,255,.45), transparent 33%), linear-gradient(145deg, #15355b, #080f18 75%); }
.community-sticker.sticker-money { background: radial-gradient(circle at 76% 18%, rgba(64,230,145,.45), transparent 33%), linear-gradient(145deg, #14543a, #071710 75%); }
.community-sticker.sticker-gg { background: radial-gradient(circle at 76% 18%, rgba(180,88,255,.45), transparent 33%), linear-gradient(145deg, #42185d, #12071a 75%); }
.community-sticker.sticker-lol { background: radial-gradient(circle at 76% 18%, rgba(255,144,62,.48), transparent 33%), linear-gradient(145deg, #66300d, #1b0c05 75%); }

.community-floating {
  position: fixed;
  z-index: 2400;
  right: 22px;
  bottom: 22px;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.community-floating > * { pointer-events: auto; }

.community-floating-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  height: 48px;
  padding: 0 15px 0 8px;
  border: 1px solid rgba(255, 10, 94, .42);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 10, 94, .96), rgba(125, 18, 56, .98));
  box-shadow: 0 15px 40px rgba(0,0,0,.44), 0 0 28px rgba(255,10,94,.2);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.community-floating-button:hover,
.community-floating-button.active {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 34px rgba(255,10,94,.3);
}

.community-floating-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 11px;
  background: rgba(0,0,0,.16);
  font-family: "Oswald", sans-serif;
  font-size: 18px;
}

.community-floating-button i {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.community-floating-button b {
  position: absolute;
  top: -7px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #090a0e;
  border-radius: 20px;
  color: #fff;
  background: #ff7f2c;
  font-size: 9px;
}

.community-floating-panel {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 58px 32px;
  width: min(370px, calc(100vw - 28px));
  height: min(520px, calc(100vh - 100px));
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 10, 94, .3);
  border-radius: 18px;
  background: rgba(9, 10, 14, .98);
  box-shadow: 0 28px 90px rgba(0,0,0,.62), 0 0 55px rgba(255,10,94,.08);
  backdrop-filter: blur(20px);
}

.community-floating-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(255,10,94,.1), transparent);
}

.community-floating-panel > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-floating-panel > header > div > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #ff6d96;
  background: rgba(255,10,94,.1);
  font-family: "Oswald", sans-serif;
  font-size: 18px;
}

.community-floating-panel header strong,
.community-floating-panel header small { display: block; }
.community-floating-panel header strong { font-size: 12px; }
.community-floating-panel header small { margin-top: 2px; color: #686f7a; font-size: 8px; }
.community-floating-panel > header > button { width: 30px; height: 30px; border: 0; border-radius: 9px; color: #7c838e; background: transparent; font-size: 20px; cursor: pointer; }
.community-floating-panel > header > button:hover { color: #fff; background: rgba(255,255,255,.06); }

.community-floating-messages {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,10,94,.65) rgba(255,255,255,.035);
}

.community-floating-message {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.community-floating-message > div {
  min-width: 0;
}

.community-floating-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  overflow: hidden;
  flex: 0 0 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #731434, #24131c);
  font-family: "Oswald", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  isolation: isolate;
}

.community-floating-avatar img {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover;
  object-position: center;
}

.community-floating-message header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.community-floating-message header strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.community-floating-message header small { flex: 0 0 auto; color: #545b66; font-size: 7px; }
.community-floating-message p { margin: 3px 0 0; color: #cdd1d8; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.community-floating-message.own > .community-floating-message-main { padding: 7px 9px; border-radius: 10px; background: rgba(255,10,94,.055); }
.community-floating-empty { display: grid; place-items: center; min-height: 180px; color: #646b76; font-size: 10px; text-align: center; }

.community-floating-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 7px;
  width: 100%;
  min-width: 0;
  height: 58px;
  margin: 0;
  padding: 9px 10px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.075);
}

.community-floating-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  height: 40px;
  margin: 0;
  resize: none;
  overflow-y: auto;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  outline: none;
  color: #fff;
  background: rgba(255,255,255,.035);
  box-shadow: none;
  font: inherit;
  font-size: 10px;
  line-height: 1.35;
}

.community-floating-form textarea:focus { border-color: rgba(255,10,94,.4); box-shadow: 0 0 0 2px rgba(255,10,94,.08); }
.community-floating-form button {
  width: 38px;
  min-width: 38px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff0a5e, #8d123f);
  cursor: pointer;
}
.community-floating-form button:disabled { opacity: .5; cursor: wait; }

.community-floating-open-page {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.065);
  color: #8c929d;
  background: rgba(255,255,255,.018);
  font-size: 9px;
  cursor: pointer;
}

.community-floating-open-page:hover { color: #fff; background: rgba(255,10,94,.06); }

@media (max-width: 760px) {
  .community-media-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .community-floating { right: 12px; bottom: 12px; }
  .community-floating-button { min-width: 52px; width: 52px; padding: 0 9px; border-radius: 15px; }
  .community-floating-button i { display: none; }
  .community-floating-panel { height: min(500px, calc(100vh - 82px)); }
}

/* Community mentions: keep profile thumbnails compact regardless of global image rules. */
.community-mention-suggestions > button {
  min-width: 0;
  overflow: hidden;
}

.community-mention-avatar,
.community-floating-mention-avatar {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  flex: 0 0 30px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #731434, #24131c);
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  line-height: 1;
  isolation: isolate;
}

.community-mention-avatar img,
.community-floating-mention-avatar img {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: cover;
  object-position: center;
}

.community-mention-suggestions > button > span:not(.community-mention-avatar),
.community-floating-mention-suggestions > button > span:not(.community-floating-mention-avatar) {
  display: block;
  min-width: 0;
  overflow: hidden;
}

/* Floating chat interactions: profiles, replies and mentions. */
.community-floating-panel {
  grid-template-rows: 58px minmax(0, 1fr) auto 58px 32px;
}

.community-floating-message {
  position: relative;
  padding-right: 46px;
  transition: background .16s ease, border-color .16s ease;
}

.community-floating-message.highlight {
  border-radius: 11px;
  background: rgba(255,10,94,.13);
  box-shadow: 0 0 0 1px rgba(255,10,94,.2);
}

.community-floating-avatar {
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.community-floating-avatar:hover {
  border-color: rgba(255,10,94,.72);
  box-shadow: 0 0 12px rgba(255,10,94,.26);
}

.community-floating-message-main {
  min-width: 0;
}

.community-floating-message-name {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.community-floating-message-name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-floating-message-reply {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 5px 0 2px;
  padding: 6px 8px;
  overflow: hidden;
  border: 0;
  border-left: 2px solid rgba(255,10,94,.62);
  border-radius: 0 7px 7px 0;
  color: #9298a3;
  text-align: left;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.community-floating-message-reply strong,
.community-floating-message-reply span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-floating-message-reply strong {
  color: #ff7aa5;
  font-size: 8px;
}

.community-floating-message-reply span {
  margin-top: 2px;
  font-size: 8px;
}

.community-floating-reply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 7px 10px;
  border-top: 1px solid rgba(255,10,94,.16);
  background: linear-gradient(90deg, rgba(255,10,94,.09), rgba(255,10,94,.02));
}

.community-floating-reply.hidden {
  display: none;
}

.community-floating-reply > div {
  min-width: 0;
  overflow: hidden;
}

.community-floating-reply span,
.community-floating-reply strong,
.community-floating-reply small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-floating-reply span {
  color: #747b86;
  font-size: 7px;
  text-transform: uppercase;
}

.community-floating-reply strong {
  margin-top: 1px;
  color: #ff7ca7;
  font-size: 9px;
}

.community-floating-reply small {
  margin-top: 1px;
  color: #969ca6;
  font-size: 8px;
}

.community-floating-reply > button {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #858b95;
  background: rgba(255,255,255,.045);
  cursor: pointer;
}

.community-floating-reply > button:hover {
  color: #fff;
  background: rgba(255,10,94,.16);
}

.community-floating-input-wrap {
  position: relative;
  min-width: 0;
  height: 40px;
}

.community-floating-input-wrap textarea {
  height: 40px;
}

.community-floating-mention-suggestions {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  max-height: 210px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(255,10,94,.3);
  border-radius: 11px;
  background: rgba(12,13,18,.99);
  box-shadow: 0 18px 45px rgba(0,0,0,.58);
}

.community-floating-mention-suggestions > button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  border: 0;
  border-radius: 8px;
  color: #e6e8ed;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.community-floating-mention-suggestions > button:is(:hover, .active) {
  background: linear-gradient(90deg, rgba(255,10,94,.15), rgba(255,10,94,.035));
}

.community-floating-mention-avatar {
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  flex-basis: 26px !important;
  font-size: 8px;
}

.community-floating-mention-suggestions strong,
.community-floating-mention-suggestions small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-floating-mention-suggestions strong {
  font-size: 9px;
}

.community-floating-mention-suggestions small {
  margin-top: 1px;
  color: #747b86;
  font-size: 7px;
}

.community-floating-message .community-mention {
  font-size: inherit;
}


.community-floating-form {
  position: relative;
  z-index: 3;
  overflow: visible;
}

.community-floating-message-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity .16s ease;
}

.community-floating-message:hover .community-floating-message-actions,
.community-floating-message-actions:focus-within {
  opacity: 1;
}

.community-floating-message-actions > button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #777e89;
  background: rgba(255,255,255,.045);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.community-floating-message-actions > button:hover {
  color: #fff;
  background: rgba(255,10,94,.18);
}

@media (hover: none) {
  .community-floating-message-actions {
    opacity: 1;
  }
}
