.project-pulse {
  position: relative;
  z-index: 1;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  color: var(--pcolor, #fff);
  background: color-mix(in srgb, var(--pcolor, #fff) 9%, rgba(4, 4, 6, .92));
  border: 1px solid color-mix(in srgb, var(--pcolor, #fff) 28%, transparent);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  font: 700 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .04em;
  pointer-events: none;
}

.project-pulse.is-visible { display: inline-flex; }
.project-pulse svg { width: 13px; height: 13px; fill: currentColor; }

.community-shell {
  position: relative;
  isolation: isolate;
}

.community-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(229, 225, 228, .58);
  font: 600 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.community-kicker::before {
  content: "";
  width: 26px;
  height: 7px;
  background: #e4c383;
  box-shadow: 0 0 14px rgba(228,195,131,.22);
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 10% 50%);
}

.community-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 38%),
    rgba(7, 7, 9, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.community-panel::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.52), transparent);
  opacity: .38;
}

.community-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.018);
}

.community-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.community-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #111116;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.community-avatar.is-large { width: 64px; height: 64px; }
.community-avatar > img,
.community-avatar > .avatar-sprite,
.community-avatar > .avatar-default {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-sprite {
  background-repeat: no-repeat;
  background-size: 400% 300%;
  background-color: #111116;
}

.avatar-default {
  display: grid !important;
  place-items: center;
  color: #c9c6ca;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.14), transparent 34%),
    #121216;
}

.avatar-default svg { width: 62%; height: 62%; fill: currentColor; }
.community-identity-copy { min-width: 0; }
.community-user-name {
  overflow: hidden;
  color: #f4f1f4;
  font: 700 13px/1.25 "Sora", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-user-meta {
  margin-top: 5px;
  color: rgba(229,225,228,.48);
  font: 500 9px/1 "JetBrains Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.community-actions { display: flex; align-items: center; gap: 8px; }
.community-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: rgba(240,237,240,.82);
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.035);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  font: 700 10px/1 "Sora", sans-serif;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.community-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.community-btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.community-btn svg { width: 14px; height: 14px; fill: currentColor; }
.community-btn.is-primary {
  color: #09090b;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 10px 28px -14px rgba(255,255,255,.65);
}
.community-btn.is-danger { color: #ff6c7e; border-color: rgba(255,65,85,.26); }
.community-btn.is-icon { width: 36px; padding: 0; }

.community-login {
  padding: 26px 20px;
  text-align: center;
}
.community-login-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.community-login-mark svg { width: 24px; height: 24px; fill: currentColor; }
.community-login p { max-width: 530px; margin: 8px auto 18px; color: rgba(229,225,228,.58); font-size: 13px; line-height: 1.8; }
.community-login-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.community-btn.provider-discord { color: #fff; background: #5865f2; border-color: #7180ff; }
.community-btn.provider-google { color: #1a1a1c; background: #f5f3f2; border-color: #fff; }

.community-composer { padding: 18px; }
.community-textarea-wrap {
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.26);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: border-color .2s, background .2s;
}
.community-textarea-wrap:focus-within { border-color: rgba(255,255,255,.26); background: rgba(0,0,0,.4); }
.community-textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: #f2eff2;
  background: transparent;
  padding: 16px 16px 38px;
  box-shadow: none !important;
  font: 500 14px/1.85 "Inter", sans-serif;
}
html[dir="rtl"] .community-textarea { font-family: "Almarai", sans-serif; }
.community-textarea::placeholder { color: rgba(229,225,228,.3); }
.community-counter {
  position: absolute;
  inset-inline-end: 13px;
  bottom: 11px;
  color: rgba(229,225,228,.34);
  font: 600 9px/1 "JetBrains Mono", monospace;
}

.community-composer-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 14px;
}
.community-tags-label {
  display: block;
  margin-bottom: 9px;
  color: rgba(229,225,228,.43);
  font: 700 9px/1 "JetBrains Mono", monospace;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.community-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.community-tag {
  --tag: #fff;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: rgba(229,225,228,.58);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  font: 700 9px/1 "Sora", sans-serif;
  transition: color .18s, border-color .18s, background .18s;
}
.community-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--tag);
  transform: rotate(45deg);
}
.community-tag.is-selected {
  color: var(--tag);
  border-color: color-mix(in srgb, var(--tag) 42%, transparent);
  background: color-mix(in srgb, var(--tag) 9%, transparent);
}
.tag-stream { --tag: #ff4155; }
.tag-lite { --tag: #c6ff05; }
.tag-hub { --tag: #7180ff; }
.tag-otaku { --tag: #fff; }
.tag-olyx { --tag: #e4c383; }

.community-tools { position: relative; display: flex; align-items: center; gap: 8px; }
.emoji-popover {
  position: absolute;
  z-index: 20;
  inset-inline-end: 0;
  bottom: calc(100% + 8px);
  width: 244px;
  padding: 10px;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,13,.97);
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.emoji-popover.is-open { display: grid; }
.emoji-option {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.72);
  background: transparent;
  transition: color .16s, background .16s, transform .16s;
}
.emoji-option:hover { color: #fff; background: rgba(255,255,255,.075); transform: translateY(-2px); }
.emoji-option svg { width: 18px; height: 18px; fill: currentColor; }

.turnstile-slot { min-height: 1px; margin-top: 10px; }
.community-status {
  min-height: 18px;
  margin-top: 8px;
  color: #ff7889;
  font-size: 11px;
  line-height: 1.55;
}

.community-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 13px;
}
.community-feed-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(229,225,228,.52);
  font: 600 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.community-feed-count svg { width: 13px; height: 13px; fill: #ff4155; }
.community-list { display: grid; gap: 10px; }
.community-comment {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.085);
  background: rgba(255,255,255,.018);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.community-comment::before {
  content: "";
  position: absolute;
  inset-block: 10px;
  inset-inline-start: 0;
  width: 2px;
  background: var(--comment-color, rgba(255,255,255,.22));
}
.community-comment.is-pinned {
  border-color: rgba(228,195,131,.34);
  background:
    linear-gradient(135deg, rgba(228,195,131,.075), transparent 45%),
    rgba(255,255,255,.022);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 18px 52px rgba(0,0,0,.22);
}
.community-comment.is-pinned::before {
  inset-block: 0;
  width: 3px;
  background: #e4c383;
  box-shadow: 0 0 20px rgba(228,195,131,.34);
}
.community-comment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.community-comment-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #f2eff2;
  font: 500 12px/1.3 "JetBrains Mono", monospace;
}
.community-comment-name > span:first-child {
  unicode-bidi: plaintext;
}
.owner-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  color: #1a1105;
  background: #e4c383;
  box-shadow: 0 0 18px rgba(228,195,131,.24);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  font: 700 8px/1 "JetBrains Mono", monospace;
  letter-spacing: .1em;
}
html[dir="rtl"] .owner-badge {
  font-family: "Almarai", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}
.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  color: #e4c383;
  border: 1px solid rgba(228,195,131,.3);
  background: rgba(228,195,131,.075);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  font: 700 8px/1 "JetBrains Mono", monospace;
  letter-spacing: .1em;
}
.pinned-badge svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
html[dir="rtl"] .pinned-badge {
  font-family: "Almarai", sans-serif;
  letter-spacing: 0;
}
.community-comment-time { margin-top: 5px; color: rgba(229,225,228,.37); font: 500 9px/1 "JetBrains Mono", monospace; }
.community-comment-body {
  margin-top: 11px;
  color: rgba(239,236,239,.82);
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.community-comment-body[lang="ar"] {
  font-family: "Almarai", sans-serif;
  font-weight: 400;
}
.community-comment-body[lang="en"] {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
}
.inline-emoji {
  display: inline-grid;
  width: 1.25em;
  height: 1.25em;
  place-items: center;
  margin: 0 .12em;
  color: #f2eff2;
  vertical-align: -.22em;
}
.inline-emoji svg { width: 100%; height: 100%; fill: currentColor; }
.community-comment-projects { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.community-comment-projects .community-tag { min-height: 22px; padding: 0 7px; font-size: 8px; pointer-events: none; }
.community-comment-menu { display: flex; flex: 0 0 auto; gap: 4px; }
.comment-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: rgba(229,225,228,.38);
  background: transparent;
}
.comment-action:hover { color: #fff; background: rgba(255,255,255,.055); }
.comment-action.is-pin:hover,
.comment-action.is-pin.is-active {
  color: #e4c383;
  background: rgba(228,195,131,.09);
}
.comment-action.is-reply:hover,
.comment-action.is-reply.is-active {
  color: #e4c383;
  background: rgba(228,195,131,.09);
}
.comment-action.is-delete:hover { color: #ff6376; }
.comment-action svg { width: 13px; height: 13px; fill: currentColor; }

.community-owner-reply {
  position: relative;
  margin-top: 12px;
  padding: 10px 12px 11px 14px;
  border-inline-start: 2px solid #e4c383;
  background:
    linear-gradient(90deg, rgba(228,195,131,.075), transparent 68%),
    rgba(255,255,255,.012);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
html[dir="rtl"] .community-owner-reply {
  padding: 10px 14px 11px 12px;
  background:
    linear-gradient(-90deg, rgba(228,195,131,.075), transparent 68%),
    rgba(255,255,255,.012);
}
.owner-reply-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.owner-reply-route {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #e4c383;
  background: rgba(228,195,131,.09);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.owner-reply-route svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}
html[dir="rtl"] .owner-reply-route svg { transform: scaleX(-1); }
.owner-reply-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.owner-reply-identity strong {
  color: rgba(247,244,246,.92);
  font: 600 10px/1.2 "JetBrains Mono", monospace;
  unicode-bidi: plaintext;
}
.owner-reply-identity .owner-badge {
  height: 17px;
  padding-inline: 6px;
  font-size: 7px;
}
.owner-reply-identity time {
  color: rgba(229,225,228,.34);
  font: 500 8px/1 "JetBrains Mono", monospace;
}
.owner-reply-actions {
  display: flex;
  margin-inline-start: auto;
  gap: 2px;
}
.owner-reply-actions .comment-action {
  width: 24px;
  height: 24px;
}
.owner-reply-body {
  margin-top: 7px;
  color: rgba(239,236,239,.76);
  font: 400 12px/1.75 "JetBrains Mono", monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.owner-reply-body[lang="ar"] {
  font-family: "Almarai", sans-serif;
  font-weight: 400;
}

.community-reply-editor {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(228,195,131,.2);
  background: rgba(228,195,131,.025);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.community-reply-editor textarea {
  display: block;
  width: 100%;
  min-height: 70px;
  max-height: 180px;
  resize: vertical;
  padding: 9px 10px;
  color: rgba(247,244,246,.9);
  border: 1px solid rgba(255,255,255,.095);
  outline: 0;
  background: rgba(0,0,0,.2);
  font: 400 12px/1.7 "JetBrains Mono", monospace;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.community-reply-editor textarea:dir(rtl) {
  font-family: "Almarai", sans-serif;
}
.community-reply-editor textarea:focus {
  border-color: rgba(228,195,131,.48);
  background: rgba(0,0,0,.3);
  box-shadow: 0 0 0 3px rgba(228,195,131,.05);
}
.reply-editor-footer {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.reply-editor-status {
  color: #ff7b8b;
  font: 500 9px/1.4 "JetBrains Mono", monospace;
}
.reply-editor-counter {
  margin-inline-start: auto;
  color: rgba(229,225,228,.3);
  font: 500 8px/1 "JetBrains Mono", monospace;
}
.reply-editor-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.reply-editor-actions .community-btn {
  min-height: 30px;
  padding-inline: 10px;
  font-size: 9px;
}
.reply-editor-actions .community-btn.is-quiet {
  border-color: transparent;
  background: transparent;
}

.community-empty,
.community-loading {
  padding: 34px 20px;
  color: rgba(229,225,228,.4);
  border: 1px dashed rgba(255,255,255,.09);
  text-align: center;
  font-size: 12px;
}
.community-more { display: flex; justify-content: center; margin-top: 12px; }

.community-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(3,3,5,.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.community-overlay.is-open { display: grid; }
.community-modal {
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.14);
  background: #0c0c10;
  box-shadow: 0 40px 120px rgba(0,0,0,.72);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.community-modal-head {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(12,12,16,.96);
  backdrop-filter: blur(14px);
}
.community-modal-title { font: 700 15px/1.2 "Sora", sans-serif; }
.community-modal-body { padding: 18px; }
.community-pin-modal { width: min(680px, 100%); }
.community-pin-note {
  max-width: 590px;
  margin: 0 0 16px;
  color: rgba(229,225,228,.52);
  font: 400 11px/1.75 "JetBrains Mono", monospace;
}
.pin-translation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pin-translation-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: rgba(228,195,131,.72);
  font: 600 9px/1 "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pin-translation-field textarea {
  width: 100%;
  min-height: 168px;
  resize: vertical;
  padding: 13px 14px;
  color: rgba(247,244,246,.9);
  border: 1px solid rgba(255,255,255,.1);
  outline: 0;
  background: rgba(255,255,255,.025);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.pin-translation-field textarea[lang="en"] {
  font-family: "JetBrains Mono", monospace;
}
.pin-translation-field textarea[lang="ar"] {
  font-family: "Almarai", sans-serif;
}
.pin-translation-field textarea:focus {
  border-color: rgba(228,195,131,.5);
  background: rgba(228,195,131,.035);
  box-shadow: 0 0 0 3px rgba(228,195,131,.055);
}
.community-pin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
html[dir="rtl"] .community-pin-note,
html[dir="rtl"] .pin-translation-field {
  font-family: "Almarai", sans-serif;
  letter-spacing: 0;
}
.name-privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid rgba(228,195,131,.16);
  background: rgba(228,195,131,.045);
}
.name-privacy-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.name-privacy-label {
  color: rgba(228,195,131,.72);
  font: 500 8px/1 "JetBrains Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.name-privacy-copy strong {
  overflow: hidden;
  color: #f4f1f4;
  font: 500 12px/1.3 "JetBrains Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
}
.name-privacy-copy small {
  color: rgba(229,225,228,.4);
  font-size: 9px;
  line-height: 1.55;
}
.name-privacy-actions {
  display: flex;
  gap: 6px;
}
.name-privacy-btn {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(239,236,239,.58);
  background: #111114;
  font: 500 8px/1 "JetBrains Mono", monospace;
  cursor: pointer;
}
.name-privacy-btn:hover,
.name-privacy-btn.is-selected {
  border-color: rgba(228,195,131,.54);
  color: #f7e8bf;
  background: rgba(228,195,131,.1);
}
html[dir="rtl"] .name-privacy-label,
html[dir="rtl"] .name-privacy-copy strong,
html[dir="rtl"] .name-privacy-btn {
  font-family: "Almarai", sans-serif;
  letter-spacing: 0;
}
.avatar-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.avatar-tabs::-webkit-scrollbar { display: none; }
.avatar-tab {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 11px;
  color: rgba(229,225,228,.48);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  font: 700 9px/1 "Sora", sans-serif;
}
.avatar-tab.is-active { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.07); }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-top: 14px; }
.avatar-choice {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #111116;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color .18s, transform .18s, filter .18s;
}
.avatar-choice:hover { border-color: rgba(255,255,255,.42); transform: translateY(-2px); filter: brightness(1.08); }
.avatar-choice.is-selected { border-color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.avatar-choice .avatar-sprite { position: absolute; inset: 0; }
.avatar-choice-label {
  position: absolute;
  inset-inline: 4px;
  bottom: 4px;
  overflow: hidden;
  padding: 4px 5px;
  color: #fff;
  background: rgba(0,0,0,.7);
  font: 700 7px/1.2 "Sora", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.avatar-upload-input { display: none; }
.avatar-note { margin-top: 10px; color: rgba(229,225,228,.36); font-size: 10px; line-height: 1.65; }

.community-toast {
  position: fixed;
  z-index: 260;
  inset-inline-start: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  max-width: min(420px, calc(100vw - 28px));
  padding: 11px 15px;
  color: #0a0a0c;
  background: #fff;
  box-shadow: 0 14px 50px rgba(0,0,0,.5);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  font: 700 11px/1.4 "Sora", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
html[dir="rtl"] .community-toast { transform: translate(50%, 18px); }
.community-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
html[dir="rtl"] .community-toast.is-visible { transform: translate(50%, 0); }

@media (max-width: 760px) {
  .community-topline { align-items: flex-start; }
  .community-actions { flex-wrap: wrap; justify-content: flex-end; }
  .community-composer-meta { grid-template-columns: 1fr; }
  .community-tools { justify-content: flex-end; }
  .avatar-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 520px) {
  .project-pulse { height: 26px; padding-inline: 8px; }
  .community-topline { padding: 13px; }
  .community-composer { padding: 13px; }
  .community-comment { padding: 13px; gap: 10px; }
  .community-avatar { width: 36px; height: 36px; }
  .community-btn .label-wide { display: none; }
  .avatar-grid { grid-template-columns: repeat(3, 1fr); }
  .avatar-upload-row { grid-template-columns: 1fr; }
  .name-privacy { grid-template-columns: 1fr; }
  .name-privacy-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .pin-translation-grid { grid-template-columns: 1fr; }
  .pin-translation-field textarea { min-height: 130px; }
  .community-pin-actions { align-items: stretch; flex-direction: column-reverse; }
  .community-pin-actions .community-btn { justify-content: center; }
  .reply-editor-footer { flex-wrap: wrap; }
  .reply-editor-status { flex-basis: 100%; }
  .reply-editor-actions { margin-inline-start: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .community-btn,
  .community-tag,
  .avatar-choice,
  .emoji-option,
  .community-toast { transition: none; }
}
