.yal-community-clickable {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.yal-community-clickable:hover,
.yal-community-clickable:focus-visible {
  background: rgba(231, 233, 234, 0.06);
  border-color: #536471;
  outline: none;
}

.yal-comm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 14500;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
}

.yal-comm-modal {
  width: min(680px, 100%);
  max-height: min(85vh, 760px);
  background: #000;
  border: 1px solid #2f3336;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.yal-comm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #2f3336;
}

.yal-comm-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.yal-comm-sub {
  margin: 4px 0 0;
  color: #71767b;
  font-size: 0.88rem;
}

.yal-comm-close {
  border: none;
  background: transparent;
  color: #e7e9ea;
  font-size: 1.25rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.yal-comm-close:hover {
  background: rgba(231, 233, 234, 0.08);
}

.yal-comm-tabs {
  display: flex;
  border-bottom: 1px solid #2f3336;
}

.yal-comm-tabs button {
  flex: 1;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #71767b;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 8px;
  cursor: pointer;
}

.yal-comm-tabs button.active {
  color: #e7e9ea;
  border-bottom-color: #1d9bf0;
}

.yal-comm-panels {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.yal-comm-panel {
  display: none;
  overflow-y: auto;
  flex: 1;
}

.yal-comm-panel.active {
  display: block;
}

.yal-comm-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #16181c;
}

.yal-comm-profile-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.yal-comm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.yal-comm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yal-comm-meta {
  min-width: 0;
}

.yal-comm-name {
  font-weight: 700;
  line-height: 1.2;
}

.yal-comm-role {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(29, 155, 240, 0.15);
  color: #1d9bf0;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.yal-comm-handle {
  color: #71767b;
  font-size: 0.92rem;
}

.yal-comm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 240px;
}

.yal-comm-act {
  border: 1px solid #536471;
  background: transparent;
  color: #e7e9ea;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.yal-comm-act:hover {
  background: rgba(231, 233, 234, 0.08);
}

.yal-comm-act.warn:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.yal-comm-act.danger:hover {
  border-color: #ef233c;
  color: #ef233c;
}

.yal-comm-act:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.yal-comm-post {
  padding: 14px 16px;
  border-bottom: 1px solid #16181c;
}

.yal-comm-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.yal-comm-post-time {
  color: #71767b;
  font-size: 0.82rem;
  margin-left: auto;
}

.yal-comm-post-text {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.yal-comm-post-media {
  margin-top: 10px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #2f3336;
}

.yal-comm-empty,
.yal-comm-loading {
  padding: 32px 16px;
  text-align: center;
  color: #71767b;
}

@media (max-width: 560px) {
  .yal-comm-row {
    flex-direction: column;
  }

  .yal-comm-actions {
    max-width: none;
    width: 100%;
  }
}
