.pp-community {
  border: 1px solid #d7dfeb;
  border-radius: 22px;
  padding: 22px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f4f8fe 100%);
  box-shadow: 0 18px 40px rgba(19, 49, 88, 0.08);
}

.pp-community-shell {
  display: grid;
  gap: 18px;
}

.pp-community-topbar h3,
.pp-community h4 {
  margin: 0;
}

.pp-community-note,
.pp-community-meta,
.pp-community-column-head p,
.pp-community-empty {
  color: #5d6b83;
  font-size: 14px;
}

.pp-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.pp-community-column {
  position: relative;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dbe4f1;
  display: grid;
  gap: 16px;
}

.pp-community-column.pro::before,
.pp-community-column.con::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 18px 0 0 18px;
}

.pp-community-column.pro::before {
  background: linear-gradient(180deg, #3ca76a 0%, #287b4f 100%);
}

.pp-community-column.con::before {
  background: linear-gradient(180deg, #e26565 0%, #c14747 100%);
}

.pp-community-column-head {
  padding-left: 10px;
}

.pp-community-group {
  display: grid;
  gap: 12px;
}

.pp-community-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eef7;
}

.pp-community-argument {
  border: 1px solid #dfe8f3;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  display: grid;
  gap: 10px;
}

.pp-community-argument.pro {
  box-shadow: inset 0 0 0 1px rgba(60, 167, 106, 0.08);
}

.pp-community-argument.con {
  box-shadow: inset 0 0 0 1px rgba(226, 101, 101, 0.08);
}

.pp-community-argument-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pp-community-origin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pp-community-origin.editorial {
  background: #eef4ff;
  color: #1f66d1;
}

.pp-community-origin.community {
  background: #f4f7fb;
  color: #4d5f79;
}

.pp-community-argument-body {
  color: #172536;
}

.pp-community-vote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pp-community button,
.pp-community input,
.pp-community textarea,
.pp-community select {
  font: inherit;
}

.pp-community button {
  background: #1f66d1;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.pp-community button.secondary {
  background: #eef4ff;
  color: #1f66d1;
}

.pp-community form {
  display: grid;
  gap: 10px;
}

.pp-community textarea,
.pp-community input,
.pp-community select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d8e5;
  border-radius: 12px;
  background: #fff;
}

.pp-community-comments {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e8eef7;
}

.pp-community-subtitle {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4d5f79;
}

.pp-community-comment {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f8fc;
  border: 1px solid #e2eaf4;
}

.pp-community-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.pp-community-success {
  color: #287b4f;
  font-weight: 600;
}

.pp-community-error {
  color: #b64040;
  font-weight: 600;
}

@media (max-width: 720px) {
  .pp-community {
    padding: 16px;
  }

  .pp-community-column {
    padding: 16px;
  }

  .pp-community-argument-head,
  .pp-community-comment-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
