/* Painel do feed (Postagem › Painel e link do cliente): cabeçalho do ciclo,
   lista de posts com a gaveta, prévia do feed e o painel de comentários.
   Usa os tokens de base.css; a cor da página do cliente entra em --fp-accent. */
.fp {
  --fp-gap: 16px;
  --fp-accent-soft: color-mix(in srgb, var(--fp-accent) 12%, transparent);
  display: flex;
  flex-direction: column;
  gap: var(--fp-gap);
  min-width: 0;
  color: var(--text);
}
.fp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  min-width: 0;
}
.fp button {
  font: inherit;
  color: inherit;
}
.fp .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.fp-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 18px 8px;
  text-align: center;
  list-style: none;
}

/* ---------- Cabeçalho ---------- */
.fp-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.fp-title {
  min-width: 0;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fp-title h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-title small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-page {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.fp-page select {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 22px 0 0;
  background-image: none;
  min-height: 0;
  height: auto;
  max-width: 100%;
  text-overflow: ellipsis;
  cursor: pointer;
  border-radius: 6px;
}
.fp-page select:focus-visible {
  outline: 2px solid var(--fp-accent);
  outline-offset: 2px;
}
.fp-page .icon {
  position: absolute;
  right: 0;
  pointer-events: none;
  color: var(--muted);
}
.fp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  max-width: 320px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r);
  background: var(--subtle);
  border: 1px solid transparent;
  color: var(--muted);
}
.fp-search:focus-within {
  border-color: var(--line-2);
  background: var(--surface);
}
#main .fp-search input,
#viewer .fp-search input,
.fp-search input {
  border: 0;
  background: transparent;
  padding: 0;
  height: auto;
  min-height: 0;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
  outline: none;
}
.fp-chips {
  display: flex;
  gap: 8px;
}
.fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fp-accent-soft);
  color: color-mix(in srgb, var(--fp-accent) 75%, var(--ink));
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.fp-month {
  padding: 0;
  background: var(--subtle);
  color: var(--ink);
}
#main .fp-month select,
#viewer .fp-month select,
.fp-month select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  height: 32px;
  min-height: 0;
  padding: 0 30px 0 12px;
  background-position: right 8px center;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
}
.fp-tools {
  display: flex;
  gap: 6px;
}
.fp-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.fp-icon:hover {
  background: var(--hover);
  color: var(--ink);
}
.fp-icon.on {
  background: var(--fp-accent-soft);
  color: var(--fp-accent);
  border-color: transparent;
}
.fp-back {
  border: 0;
  background: var(--subtle);
}
.fp-meta {
  display: flex;
  gap: 22px;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.fp-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fp-meta dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fp-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  min-height: 22px;
  display: flex;
  align-items: center;
}
.fp-link {
  border: 0;
  background: none;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline dotted var(--faint);
  text-underline-offset: 3px;
}
.fp-link:hover {
  color: var(--fp-accent);
}
.fp-brand {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.fp-modes {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--subtle);
  border-radius: 999px;
}
.fp-modes button {
  white-space: nowrap;
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.fp-modes button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Pessoas e selos ---------- */
.fp-faces {
  display: inline-flex;
}
.fp-face {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  border: 2px solid var(--surface);
  background: var(--lilac);
  color: var(--lilac-ink);
  overflow: hidden;
  flex: none;
}
.fp-faces .fp-face + .fp-face {
  margin-left: -7px;
}
.fp-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fp-face.tone-mint {
  background: var(--mint);
  color: var(--mint-ink);
}
.fp-face.tone-sky {
  background: var(--sky);
  color: var(--sky-ink);
}
.fp-face.tone-peach {
  background: var(--peach);
  color: var(--peach-ink);
}
.fp-face.tone-rose {
  background: var(--rose);
  color: var(--rose-ink);
}
.fp-face.tone-sun {
  background: var(--sun);
  color: var(--sun-ink);
}
.fp-face.fp-more {
  background: var(--subtle);
  color: var(--muted);
}
.fp-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--fp-accent-soft);
  color: var(--fp-accent);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.fp-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--subtle);
  color: var(--muted);
}
.fp {
  --st-gray: var(--faint);
  --st-yellow: var(--warn);
  --st-orange: var(--danger);
  --st-green: #16a974;
  --st-purple: #7c5cf0;
  --st-teal: #0f9fa0;
  --st-sky: #3b8fd9;
}
.fp .st-gray {
  --st: var(--st-gray);
}
.fp .st-yellow {
  --st: var(--st-yellow);
}
.fp .st-orange {
  --st: var(--st-orange);
}
.fp .st-green {
  --st: var(--st-green);
}
.fp .st-purple {
  --st: var(--st-purple);
}
.fp .st-teal {
  --st: var(--st-teal);
}
.fp .st-sky {
  --st: var(--st-sky);
}
.fp-pill.st-yellow {
  background: var(--sun);
  color: var(--sun-ink);
}
.fp-pill.st-orange {
  background: var(--rose);
  color: var(--rose-ink);
}
.fp-pill.st-green {
  background: var(--mint);
  color: var(--mint-ink);
}
.fp-pill.st-purple {
  background: var(--lilac);
  color: var(--lilac-ink);
}
.fp-pill.st-teal,
.fp-pill.st-sky {
  background: var(--sky);
  color: var(--sky-ink);
}

/* ---------- Corpo em três colunas ---------- */
.fp-panes {
  display: none;
}
.fp-body {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr) minmax(
      300px,
      360px
    );
  gap: var(--fp-gap);
  align-items: start;
}
.fp-list,
.fp-side {
  position: sticky;
  top: 12px;
  max-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Lista de posts */
.fp-list > header,
.fp-feed > header,
.fp-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}
.fp-list h2,
.fp-feed h2,
.fp-side-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
#main .fp-filter select,
#viewer .fp-filter select,
.fp-filter select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  padding: 2px 0;
  min-height: 0;
  height: auto;
  box-shadow: none;
  background-image: none;
  cursor: pointer;
  width: auto;
}
.fp-list {
  overflow-y: auto;
  scrollbar-width: thin;
}
.fp-items {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fp-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 10px 10px 10px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s var(--ease);
}
.fp-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--st);
}
.fp-item:hover {
  border-color: var(--line-2);
  background: var(--subtle);
}
.fp-item.is-current {
  border-color: color-mix(in srgb, var(--fp-accent) 45%, transparent);
  background: var(--fp-accent-soft);
}
.fp-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fp-item-body strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-item-body small {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.fp-tag {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--subtle);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
}
.fp-item.is-current .fp-tag {
  background: var(--surface);
}
.fp-item-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.fp-item-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-count-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
}
.fp-count-icon .icon {
  width: 13px;
  height: 13px;
}
.fp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--st);
  background: color-mix(in srgb, var(--st) 30%, transparent);
}
.fp-drawer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.fp-drawer h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.fp-drawer h3 small {
  font-size: 10px;
}
.fp-mini {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  color: var(--muted);
}
.fp-mini .icon {
  width: 13px;
  height: 13px;
}
.fp-mini:hover {
  color: var(--ink);
}
.fp-add {
  margin: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: var(--r);
  border: 1px dashed var(--line-2);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex: none;
}
.fp-add:hover {
  border-color: var(--fp-accent);
  color: var(--fp-accent);
}

/* Prévia do feed */
.fp-feed {
  padding-bottom: 18px;
}
.fp-feed h2 {
  white-space: nowrap;
}
.fp-feed h2 .icon {
  color: var(--fp-accent);
}
.fp-feed-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-seg {
  display: flex;
  padding: 3px;
  background: var(--subtle);
  border-radius: 999px;
  margin-right: 4px;
}
.fp-seg button {
  border: 0;
  background: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.fp-seg button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.fp-feed .fp-icon {
  width: 30px;
  height: 30px;
}
.fp-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 12px;
  padding: 0 16px;
}
.fp-profile strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.fp-profile small {
  font-size: 11px;
  color: var(--muted);
}
.fp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  background: var(--fp-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--fp-accent-soft);
}
.fp-avatar svg {
  width: 60%;
  height: 60%;
}
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}
.fp-grid.is-stories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.fp-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 0;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--fp-accent-soft);
  outline-offset: 2px;
}
.is-stories .fp-tile {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
}
.fp-tile img,
.fp-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease);
}
.fp-tile:hover img,
.fp-tile:hover video {
  transform: scale(1.04);
}
.fp-tile.is-current {
  outline: 3px solid var(--fp-accent);
}
.fp-tile.is-past {
  opacity: 0.55;
}
.fp-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12%;
  text-align: center;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--fp-accent) 26%, var(--surface)),
    color-mix(in srgb, var(--fp-accent) 55%, var(--surface))
  );
  color: color-mix(in srgb, var(--fp-accent) 30%, #10131a);
}
.fp-art b {
  font-size: clamp(10px, 1.1vw, 14px);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-tile-type {
  position: absolute;
  top: 7px;
  right: 7px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.fp-tile-state {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--st);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.fp-tile-info {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 8px 7px;
  background: linear-gradient(transparent, rgba(10, 12, 18, 0.72));
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.fp-tile:hover .fp-tile-info,
.fp-tile:focus-visible .fp-tile-info,
.fp-tile.is-current .fp-tile-info {
  opacity: 1;
  transform: none;
}
.fp-tile-info b {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-tile-info small {
  font-size: 10px;
  opacity: 0.85;
}
.fp-grid-empty {
  grid-column: 1 / -1;
  padding: 60px 10px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}

/* Painel do post */
.fp-side-head h2 {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fp-post {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 16px;
  padding: 10px;
  border-radius: var(--r);
  background: var(--subtle);
}
.fp-post-thumb {
  width: 52px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  display: block;
}
.fp-post-thumb img,
.fp-post-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fp-post-thumb .fp-art b {
  font-size: 7px;
}
.fp-post > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.fp-post small {
  font-size: 11px;
  color: var(--muted);
}
.fp-post strong {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}
.fp-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 4px;
}
.fp-dark,
.fp-ghost,
.fp-approve,
.fp-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}
.fp-ghost:hover {
  background: var(--hover);
}
.fp .fp-dark {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}
.fp .fp-approve {
  background: var(--st-green);
  border-color: var(--st-green);
  color: #fff;
}
.fp .fp-send {
  background: var(--fp-accent);
  border-color: var(--fp-accent);
  color: #fff;
}
.fp-send .icon {
  width: 14px;
  height: 14px;
}
.fp-wide {
  width: 100%;
  margin-top: 4px;
}
.fp-status-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.fp-status-select::before {
  content: "";
  position: absolute;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st);
  pointer-events: none;
}
#main .fp-status-select select,
#viewer .fp-status-select select,
.fp-status-select select {
  height: 32px;
  min-height: 0;
  padding: 0 28px 0 24px;
  background-position: right 7px center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: none;
  width: auto;
}
.fp-tabs {
  display: flex;
  gap: 2px;
  margin: 10px 16px 0;
  padding: 3px;
  background: var(--subtle);
  border-radius: var(--r);
}
.fp-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 7px 4px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.fp-tabs button b {
  font-size: 10px;
  color: var(--fp-accent);
}
.fp-tabs button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.fp-side-body {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
}
.fp-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fp-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.fp-note.from-client {
  background: var(--fp-accent-soft);
  border-color: transparent;
}
.fp-note .fp-face {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.fp-note > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.fp-note header {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  width: 100%;
}
.fp-note header strong {
  font-size: 13px;
  color: var(--ink);
}
.fp-note header small {
  grid-row: 2;
  font-size: 11px;
  color: var(--muted);
}
.fp-note time {
  grid-row: 1;
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.fp-note p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fp-facets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.fp-facets span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: var(--subtle);
  font-size: 12px;
}
.fp-facets small {
  color: var(--muted);
  font-weight: 600;
}
.fp-facets b {
  font-size: 11px;
}
.fp-facets .fs-approved b {
  color: var(--mint-ink);
}
.fp-facets .fs-changes b {
  color: var(--rose-ink);
}
.fp-facets .fs-pending b {
  color: var(--muted);
}
.fp-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.fp-review fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fp-review legend {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.fp-review fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--subtle);
  font-size: 12px;
  cursor: pointer;
}
.fp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.fp-field textarea,
.fp-field input,
.fp-composer input {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}
.fp-review footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.fp-error {
  color: var(--danger-ink);
  font-size: 12px;
  margin: 0;
}
.fp-error:empty {
  display: none;
}
.fp-brief {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fp-brief-row small,
.fp-brief-grid small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.fp-brief-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.fp-rich {
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--subtle);
}
.fp-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.fp-brief-grid span {
  padding: 9px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.fp-brief-people {
  display: flex;
  gap: 4px;
}
.fp-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.fp-history li {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 0 0 16px;
  font-size: 13px;
}
.fp-history li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.fp-history i {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--st);
}
.fp-history time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.fp-composer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--subtle);
  border: 1px solid transparent;
  flex: none;
}
.fp-composer:focus-within {
  border-color: var(--line-2);
  background: var(--surface);
}
.fp-composer > :not(.fp-face) {
  grid-column: 1 / -1;
}
.fp-composer > .fp-face + textarea {
  grid-column: 2;
}
#main .fp-composer textarea,
#viewer .fp-composer textarea,
.fp-composer textarea {
  border: 0;
  background: transparent;
  resize: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 3px 0;
  min-height: 0;
  height: auto;
  box-shadow: none;
  outline: none;
  width: 100%;
}
.fp-composer footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fp-hint {
  font-size: 11px;
  color: var(--muted);
}

/* Escolha de pessoas (ciclo e post) */
.fp-people-pick {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 12px 12px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}
.fp-people-pick legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px;
}
.fp-people-pick legend small {
  font-weight: 500;
  color: var(--muted);
}
.fp-people-pick label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.fp-people-pick label:hover {
  background: var(--subtle);
}
.fp-people-pick label > span:not(.fp-face) {
  flex: 1;
}
.fp-people-pick .fp-face {
  width: 28px;
  height: 28px;
}

/* ---------- Tamanhos ---------- */
@media (max-width: 1280px) {
  .fp-body {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }
  .fp-side {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }
  .fp-side-body {
    max-height: 420px;
  }
  .fp-meta {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 900px) {
  .fp {
    --fp-gap: 12px;
  }
  .fp-head {
    gap: 10px;
    padding: 12px;
  }
  .fp-title {
    flex: 1 1 0;
  }
  .fp-search {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
  }
  .fp-chips {
    order: 6;
  }
  .fp-tools {
    order: 7;
    margin-left: auto;
  }
  .fp-meta {
    order: 8;
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .fp-modes {
    order: 9;
    flex: 1 1 100%;
  }
  .fp-modes button {
    flex: 1;
  }
  .fp-panes {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    position: sticky;
    top: 8px;
    z-index: 5;
  }
  .fp-panes button {
    flex: 1;
    border: 0;
    background: none;
    padding: 9px 6px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
  }
  .fp-panes button b {
    font-size: 11px;
    color: var(--fp-accent);
  }
  .fp-panes button.on {
    background: var(--ink);
    color: var(--on-ink);
  }
  .fp-panes button.on b {
    color: inherit;
  }
  .fp-body {
    display: block;
  }
  .fp-body > * {
    display: none;
  }
  .fp[data-pane="list"] .fp-list,
  .fp[data-pane="feed"] .fp-feed,
  .fp[data-pane="side"] .fp-side {
    display: flex;
  }
  .fp[data-pane="feed"] .fp-feed {
    display: block;
  }
  .fp-list,
  .fp-side {
    position: static;
    max-height: none;
  }
  .fp-side-body {
    max-height: none;
  }
  .fp-grid,
  .fp-profile {
    padding: 0 10px;
  }
  .fp-grid.is-stories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .fp-panes button,
  .fp-modes button {
    font-size: 12px;
    white-space: nowrap;
    padding-inline: 4px;
  }
  .fp-head .fp-chip:first-child {
    display: none;
  }
  .fp-meta dt {
    font-size: 9px;
  }
  .fp-meta dd {
    font-size: 12px;
  }
  .fp-feed > header {
    flex-wrap: wrap;
  }
  .fp-feed h2 {
    font-size: 13px;
  }
  .fp-post-actions > * {
    flex: 1 1 auto;
  }
  .fp-facets,
  .fp-brief-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Link do cliente no modo Painel */
body.client-panel {
  background: var(--bg);
}
.fp-page-wrap {
  font-family: var(--font);
  max-width: 1560px;
  margin: 0 auto;
  padding: 16px;
}
.fp-page-wrap .fp-list,
.fp-page-wrap .fp-side {
  top: 16px;
  max-height: calc(100dvh - 32px);
}
@media (max-width: 900px) {
  .fp-page-wrap {
    padding: 10px;
  }
}

/* Parte reprovada pelo cliente (01/11/2026). */
.fp-pill.st-red,
.sp-status.st-red {
  background: var(--rose);
  color: var(--danger-ink);
}
.fs-rejected,
.fp-facets .fs-rejected b {
  color: var(--danger-ink);
}
