.template-community {
  margin: 48px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border, #30363d);
  max-width: 100%;
}
.community-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.community-heading h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 8px 0;
}
.community-heading p {
  max-width: 56em;
  margin: 8px 0;
}
.community-compose {
  max-width: 860px;
  border-top: 2px solid #a371f7;
}
.community-compose label:not(.community-consent) {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
}
.community-compose textarea {
  width: 100%;
  resize: vertical;
}
.community-compose .community-file-label {
  margin-top: 18px !important;
}
.community-compose input[type='file'] {
  max-width: 100%;
  font-size: 14px;
}
.community-compose input[type='file']::file-selector-button {
  background: #21262d;
  color: #e6edf3;
  border: 1px solid #484f58;
  border-radius: 6px;
  padding: 8px 12px;
  margin-right: 10px;
}
.community-compose #community-rules {
  font-size: 13px;
  line-height: 1.7;
  margin: 12px 0;
}
.community-consent {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.community-consent input {
  margin-top: 5px;
  accent-color: #a371f7;
}
.community-form-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.community-login {
  display: block;
  max-width: 860px;
}
.community-filters {
  display: inline-flex;
  margin: 26px 0 18px;
}
.community-list {
  display: grid;
  gap: 16px;
  max-width: 1000px;
}
.community-comment {
  min-width: 0;
}
.community-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.community-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.community-person b {
  overflow-wrap: anywhere;
}
.community-meta time {
  font-size: 12px;
  margin-left: auto;
}
.community-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  margin: 16px 0;
}
.community-media {
  margin: 16px 0 0;
  max-width: 720px;
}
.community-media img,
.community-media video {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #010409;
}
.community-media video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.community-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.community-actions summary {
  cursor: pointer;
  font-size: 13px;
}
.community-report {
  display: grid;
  gap: 8px;
  width: min(340px, 100%);
  margin-top: 12px;
}
.community-report label {
  font-size: 13px;
}
.community-report button {
  justify-self: start;
}
.community-pager {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.community-hidden {
  border-style: dashed;
}
.community-compose .form-error {
  color: #ff7b72;
  margin-top: 14px;
}
.community-compose [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .community-heading {
    display: block;
  }
  .community-meta {
    gap: 8px;
  }
  .community-meta time {
    margin-left: 0;
    width: 100%;
  }
  .community-compose,
  .community-comment {
    padding: 18px;
  }
  .community-actions {
    justify-content: flex-start;
  }
  .community-form-end .btn {
    min-height: 44px;
  }
  .template-community {
    margin-top: 32px;
  }
}
