/* Comunidade: filtros do app e revisão compartilhada com o painel. */
.social-note,
.social-empty {
  color: var(--muted, #68758b);
  font-size: 12px;
  line-height: 1.6;
}
.social-empty {
  padding: 28px 20px;
  margin: 0;
  text-align: center;
}
.social-note {
  margin: 8px 0 18px;
}
.social-tabs {
  display: flex;
  flex: none;
  gap: 4px;
  margin: 6px 16px 12px;
  padding: 4px;
  border-radius: 14px;
  background: var(--seg, #e9eef6);
}
.social-tabs button {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  font-size: 12px;
  color: var(--muted, #68758b);
  border-radius: 10px;
  font-weight: 500;
}
.social-tabs button[aria-pressed='true'] {
  color: var(--accent-ink, #22386f);
  background: var(--card, #fff);
  box-shadow: 0 1px 3px rgb(20 35 70 / 0.12);
  font-weight: 700;
}
.social-save {
  margin-left: auto;
}
.social-save.on {
  color: var(--accent-ink) !important;
}
.social-save.on .i {
  fill: currentColor;
}
.community-post > footer {
  gap: 20px;
}
.social-report-button {
  color: var(--muted);
  opacity: 0.7;
  width: 30px;
  height: 32px;
  flex: none;
}
.social-report-button .i {
  width: 15px;
  height: 15px;
}
.social-activity {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: var(--blue-50);
  border-radius: 12px;
  margin: 12px 0 16px;
  color: var(--accent-ink);
}
.social-activity > span {
  flex: 1;
  min-width: 0;
}
.social-activity b {
  font-size: 12px;
}
.social-activity small {
  font-size: 10px;
  color: var(--accent-ink);
  opacity: 0.8;
}
.social-activity > .i {
  width: 16px;
  height: 16px;
}
.social-wall {
  padding: 8px 16px 24px;
}
.social-wall-filters {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 10px;
  margin: 0 0 16px;
}
.social-wall-filters label,
.social-compose-options label {
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.social-wall-filters select,
.social-compose-options select,
.social-report select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.social-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.social-photo-grid > button {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
}
.social-photo-grid > button:nth-child(5n + 1) {
  grid-column: span 2;
  aspect-ratio: 1.65;
}
.social-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.social-photo-grid button:active img {
  transform: scale(1.035);
}
.social-photo-grid span {
  position: absolute;
  inset: auto 0 0;
  text-align: left;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, #10213bdd);
  color: white;
  font-size: 10px;
}
.social-compose-options {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.social-people-picker {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 14px;
}
.social-people-picker summary {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--accent-ink);
  font-weight: 600;
}
.social-people-picker summary .i {
  width: 16px;
  height: 16px;
}
.social-people-picker > input {
  width: 100%;
  min-width: 0;
  margin: 12px 0 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 12px;
}
.social-people-results {
  max-height: 210px;
  overflow: auto;
}
.social-people-results > button,
.social-mention-hints > button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 2px;
  width: 100%;
  text-align: left;
}
.social-people-results > button[hidden] {
  display: none;
}
.social-people-results b,
.social-mention-hints b {
  display: block;
  font-size: 12px;
}
.social-people-results small,
.social-mention-hints small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.social-mention {
  display: inline;
  padding: 0;
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}
.social-mention:hover {
  text-decoration: underline;
}
.community-reply {
  position: relative;
}
.social-mention-hints {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 25px #10213b25;
  padding: 4px 10px;
}
.community-compose form > .social-mention-hints {
  position: static;
  box-shadow: none;
  flex: none;
}
.social-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
}
.social-person .community-avatar {
  width: 76px;
  height: 76px;
  font-size: 24px;
}
.social-person h2 {
  font: 600 22px var(--display);
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.social-person p {
  color: var(--accent-ink);
  font-size: 12px;
  margin: 0;
}
.social-person small {
  color: var(--muted);
  font-size: 11px;
}
.social-person > .btn {
  margin-top: 10px;
}
.social-mentions {
  padding: 8px 16px 24px;
}
.social-mention-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.social-mention-row > span:not(.community-avatar) {
  flex: 1;
  min-width: 0;
}
.social-mention-row b {
  font-size: 12px;
}
.social-mention-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.social-mention-row > .i {
  width: 16px;
  height: 16px;
}
.social-report {
  max-height: calc(100dvh - 90px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social-report > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.social-report h2 {
  font: 600 20px var(--display);
  margin: 0;
}
.social-report .field {
  margin: 0;
}
.social-report textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  padding: 10px;
}
.social-report > .community-muted {
  margin: 0;
}
.community-comment > div {
  flex: 1;
}
.community-chat-author > b {
  flex: 1;
}
.community-chat-author > .social-report-button {
  width: 26px;
}
/* Mesmas ações de revisão no celular e no computador. */
.social-moderation {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 24px;
  color: var(--ink, #253653);
}
.social-mod-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.social-mod-tabs button {
  border: 1px solid var(--line, #dce2ec);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--card, #fff);
  color: var(--muted, #68758b);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.social-mod-tabs button[aria-pressed='true'] {
  color: var(--accent-ink, #22386f);
  background: var(--blue-50, #e8eef9);
  font-weight: 600;
}
.social-mod-card {
  padding: 16px;
  border: 1px solid var(--line, #dce2ec);
  border-radius: 14px;
  background: var(--card, #fff);
  margin-bottom: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.social-mod-card > header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}
.social-mod-card > header > b {
  min-width: 0;
  flex: 1;
}
.social-mod-card small {
  font-size: 11px;
  color: var(--muted, #68758b);
}
.social-mod-card p {
  line-height: 1.6;
  margin: 10px 0;
}
.social-mod-text {
  white-space: pre-wrap;
}
.social-mod-thumb {
  width: 86px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 8px 8px 0;
}
.social-mod-report {
  padding: 12px;
  border-left: 3px solid var(--line-2, #bccce2);
  background: var(--bg, #f4f6fa);
  border-radius: 8px;
  margin: 12px 0;
}
.social-mod-report p:empty {
  display: none;
}
.social-mod-report p {
  font-size: 12px;
}
.social-mod-card > label {
  display: block;
  font-size: 11px;
  color: var(--muted, #68758b);
  margin-top: 12px;
}
.social-mod-card input {
  font: inherit;
  font-size: 12px;
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line, #dce2ec);
  background: var(--bg, #f4f6fa);
  color: var(--ink, #253653);
  margin-top: 6px;
  box-sizing: border-box;
}
.social-mod-card > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.social-mod-card > footer button {
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--line, #dce2ec);
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--blue-50, #e8eef9);
  color: var(--accent-ink, #22386f);
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .social-photo-grid img {
    transition: none;
  }
}

/* Editor de publicação: escrita em primeiro plano, contexto recolhido. */
.compose-submit {
  font: 600 12px var(--ui);
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  min-height: 38px;
  white-space: nowrap;
}
.compose-submit:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: default;
}
.community-compose {
  padding: 14px 20px 28px;
  min-width: 0;
}
.community-compose .post-editor {
  gap: 0;
  background: var(--card);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  min-width: 0;
}
.community-compose .community-identity {
  gap: 10px;
}
.community-compose .community-identity > .av {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
}
.community-compose .community-identity > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.community-compose .community-identity b {
  font: 600 14px/1.3 var(--display);
  overflow-wrap: anywhere;
}
.community-compose .community-identity small {
  font-size: 11px;
  color: var(--muted);
}
.compose-context {
  margin-top: 16px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--accent-ink);
  min-width: 0;
}
.compose-context > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 11px 12px;
}
.compose-context > summary::-webkit-details-marker,
.compose-mentions > summary::-webkit-details-marker {
  display: none;
}
.compose-context > summary > .i {
  width: 16px;
  height: 16px;
  flex: none;
}
.compose-context > summary > .i:last-child {
  width: 13px;
  margin-left: auto;
  transition: transform 0.2s;
}
.compose-context[open] > summary > .i:last-child {
  transform: rotate(90deg);
}
.compose-context > summary > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.compose-context b {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.compose-context small {
  font-size: 10px;
  line-height: 1.4;
  opacity: 0.8;
}
.compose-context-fields {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}
.compose-context-fields label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-2);
  min-width: 0;
}
.compose-context-fields select {
  font: inherit;
  font-size: 12px;
  min-width: 0;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
}
.compose-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.compose-writing {
  position: relative;
  min-width: 0;
  margin-top: 10px;
}
.community-compose .compose-writing textarea {
  display: block;
  padding: 14px 0 26px;
  min-height: 210px;
  font-size: 17px;
  line-height: 1.6;
  resize: vertical;
  outline-offset: 5px;
  border-radius: 6px;
}
#compose-count {
  display: block;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  margin: -16px 0 16px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.compose-tools {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.compose-tool,
.compose-mentions > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  cursor: pointer;
  font-size: 12px;
  color: var(--accent-ink);
  font-weight: 500;
}
.compose-tool > .i,
.compose-mentions > summary > .i {
  width: 17px;
  height: 17px;
}
.compose-file {
  position: relative;
  flex: none;
}
.compose-file input[type='file'] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  opacity: 0;
  border: 0;
  white-space: nowrap;
}
.compose-file:focus-within {
  outline: 2px solid var(--accent-ink);
  outline-offset: 4px;
  border-radius: 4px;
}
.compose-tools .compose-mentions {
  border: 0;
  padding: 0;
  border-radius: 0;
  position: static;
  margin: 0;
  min-width: 0;
}
.compose-tools .compose-mentions > summary {
  font-size: 12px;
  font-weight: 500;
}
.compose-photo-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.compose-people-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 24px #10213b15;
}
.compose-people-panel > input {
  width: 100%;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px;
  margin: 0 0 6px;
}
.community-compose .community-upload-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin: 0 -2px 14px;
  padding: 2px;
  overscroll-behavior-x: contain;
}
.community-compose .community-upload {
  flex: 0 0 78%;
  scroll-snap-align: start;
}
.community-compose .community-upload:only-child {
  flex-basis: 100%;
}
.community-compose .community-upload > img {
  aspect-ratio: 4/3;
  border-radius: 12px;
}
.compose-photo-alt {
  margin-top: 6px;
}
.compose-photo-alt summary {
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
.compose-photo-alt input {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 6px;
}
.compose-writing .social-mention-hints {
  top: 100%;
  bottom: auto;
  max-height: 200px;
}
@media (max-width: 360px) {
  .community-compose {
    padding: 12px;
  }
  .community-compose .post-editor {
    padding: 14px;
  }
  .compose-tools {
    gap: 10px;
  }
  .compose-submit {
    padding: 9px 11px;
  }
  .compose-photo-count {
    font-size: 9px;
  }
}

.compose-people-panel {
  top: auto;
  bottom: calc(100% + 8px);
}

.bar:has(.compose-submit) {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 6px;
  padding-right: 14px;
}
.bar:has(.compose-submit) .bar-title {
  font-size: 16px;
  min-width: 0;
}
.community-compose .community-identity > .av {
  background: var(--blue-50);
  overflow: hidden;
}
.community-compose .community-identity > .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-compose .compose-writing textarea {
  resize: none;
}

.community-post > header > .social-delete-button {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
}
.community-post > header > .social-delete-button .i {
  width: 17px;
  height: 17px;
}
.community-post > header > .social-delete-button:hover,
.community-post > header > .social-delete-button:focus-visible {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, transparent);
}

/* A única atividade do ministrante acompanha seu cartão público. */
.speaker-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  min-width: 0;
  padding: 15px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.speaker-offer > .ava {
  width: 62px;
  height: 74px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
}
.speaker-offer > .ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.speaker-offer > span:not(.ava) {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.speaker-offer small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--green-ink);
  font-weight: 600;
}
.speaker-offer small > .i {
  width: 13px;
  height: 13px;
}
.speaker-offer b {
  font: 600 13px/1.35 var(--display);
  overflow-wrap: anywhere;
}
.speaker-offer em {
  font-style: normal;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.speaker-offer > .i {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.ct-card > .speaker-offer {
  margin-top: 16px;
  background: var(--bg);
}
.sp-card .ct-card {
  padding-bottom: 26px;
}

/* Tema escuro do painel e do app: abas e botões de moderação */
:root[data-theme='dark'] .social-tabs button[aria-pressed='true'],
:root[data-theme='dark'] .social-mod-tabs button[aria-pressed='true'] {
  background: #24365f;
  color: #c3d6ff;
}
:root[data-theme='dark'] .social-mod-card > footer button {
  background: #1f2e58;
  color: var(--ink, #e8eefb);
  border-color: var(--line, #27365e);
}
