/* Arquivos por cliente (fase 4, 01/11/2026): área de envio à esquerda e a
   lista à direita, na equipe e no link do cliente. */
.cf-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cf-head-ico {
  display: grid;
  place-items: center;
  color: var(--accent);
}
.cf-head-ico .icon {
  width: 28px;
  height: 28px;
}
.cf-head h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.cf-client {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: 38px;
  padding: 0 34px 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s;
}
.cf-client:hover,
.cf-client:focus-within {
  border-color: var(--ink);
}
.cf-client-face {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
}
/* O seletor ocupa só o nome escolhido (sem vão até a seta). */
.cf-client select {
  appearance: none;
  field-sizing: content;
  min-width: 0;
  max-width: 220px;
  height: 36px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}
.cf-client .icon {
  position: absolute;
  right: 12px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}
.cf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}
.cf-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 380px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cf-panel h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.cf-panel h2 small {
  color: var(--muted);
  font-weight: 500;
}
.cf-panel > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.cf-drop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 260px;
  padding: 24px;
  border: 1.5px dashed transparent;
  border-radius: 18px;
  background: var(--subtle);
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.cf-drop:hover,
.cf-drop:focus-within {
  border-color: var(--line-2);
}
.cf-drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.01);
}
.cf-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cf-drop-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 20px -12px var(--accent);
}
.cf-drop.is-over .cf-drop-ico {
  animation: cf-bounce 0.6s var(--ease-spring) infinite alternate;
}
.cf-drop strong {
  font-size: 14px;
}
.cf-drop small {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
}
.cf-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.cf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--subtle);
  animation: cf-in 0.35s var(--ease-spring);
}
.cf-row.is-error {
  background: var(--rose);
}
.cf-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: #fff;
}
.cf-ico .icon {
  width: 17px;
  height: 17px;
}
.cf-ico.is-image {
  background: #3d74d6;
}
.cf-ico.is-video {
  background: #16a37a;
}
.cf-ico.is-doc {
  background: #e0464f;
}
.cf-ico.is-design {
  background: #9b4fe0;
}
.cf-ico.is-other {
  background: #7c8494;
}
.cf-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cf-info strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cf-info small {
  color: var(--muted);
  font-size: 11px;
}
.cf-row.is-error small {
  color: var(--danger-ink);
}
.cf-bar {
  height: 4px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-2);
}
.cf-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.2s linear;
}
.cf-down,
.cf-del {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}
.cf-del {
  color: var(--muted);
}
.cf-down .icon,
.cf-del .icon {
  width: 15px;
  height: 15px;
}
.cf-empty {
  margin: 12px 0 0;
  padding: 28px 12px;
  border: 1.5px dashed var(--line-2);
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
@keyframes cf-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes cf-bounce {
  to {
    transform: translateY(-5px);
  }
}
@media (max-width: 860px) {
  .cf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cf-panel {
    min-height: 0;
  }
  .cf-drop {
    min-height: 170px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf-row,
  .cf-drop.is-over .cf-drop-ico {
    animation: none;
  }
}

/* Portal do cliente na equipe (fase 5): acessos e conversa. */
.pc-logins {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
}
.pc-logins li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--subtle);
}
.pc-logins li > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.pc-logins strong {
  font-size: 13px;
}
.pc-logins small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-logins .subtle-button {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.pc-face {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  font-weight: 700;
}
.pc-link {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--mint-ink);
}
.pc-link p {
  margin: 0 0 8px;
  font-size: 12px;
}
.pc-link .tsx-share {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.pc-link input {
  flex: 1;
  min-width: 0;
}
.pc-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 8px;
  margin-top: auto;
}
.pc-form .form-error {
  grid-column: 1 / -1;
  margin: 0;
}
.pc-form .form-error:empty {
  display: none;
}
.pc-chat {
  min-height: 460px;
}
.pc-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  margin: 8px 0;
  overflow: auto;
}
.pc-msg {
  align-self: flex-start;
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 4px;
  background: var(--subtle);
  animation: cf-in 0.3s var(--ease-spring);
}
.pc-msg.is-team {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--accent-soft);
}
.pc-msg header {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 11px;
}
.pc-msg time {
  color: var(--muted);
}
.pc-msg p {
  margin: 4px 0 0;
  font-size: 13px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.pc-compose {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.pc-compose textarea {
  flex: 1;
  min-height: 44px;
  border-radius: 14px;
  field-sizing: content;
  max-height: 160px;
}
.pc-compose .dark-button {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
@media (max-width: 600px) {
  .pc-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .pc-logins li {
    flex-wrap: wrap;
  }
}

/* Clientes (Agência): um cartão por quadro/cliente. */
.cl-intro {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cl-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cl-card > header > div {
  flex: 1;
  min-width: 0;
}
.cl-card h2 {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-card small {
  color: var(--muted);
  font-size: 12px;
}
.cl-face {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--board);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.cl-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.cl-card dl div {
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--subtle);
}
.cl-card dt {
  color: var(--muted);
  font-size: 11px;
}
.cl-card dd {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-card dd.is-late {
  color: var(--danger-ink);
}
.cl-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cl-card footer .subtle-button {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

/* Propostas (equipe). */
.pr-link {
  margin: 0;
}
.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.pr-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pr-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pr-card header small {
  color: var(--muted);
  font-size: 12px;
}
.pr-card h2 {
  margin: 4px 0 0;
  font-size: 17px;
}
.pr-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.pr-total {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pr-total small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.pr-card blockquote {
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--peach);
  color: var(--peach-ink);
  font-size: 13px;
}
.pr-sig {
  color: var(--mint-ink) !important;
  font-weight: 600;
}
.pr-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.pr-card footer .subtle-button {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}
.pr-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.pr-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 120px;
  gap: 6px;
}
.pr-item input:last-child {
  grid-column: 1 / -1;
}

/* Faturas na página Portal do cliente (equipe). */
.pc-invoices {
  min-height: 0;
  margin-top: 16px;
}
.pc-inv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
}
.pc-inv li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--subtle);
}
.pc-inv li > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 160px;
}
.pc-inv small {
  color: var(--muted);
  font-size: 11px;
}
.pc-inv b {
  font-size: 15px;
}
.pc-inv .subtle-button {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.pc-inv-form {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}
@media (max-width: 760px) {
  .pc-inv-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cl-card footer a.subtle-button,
.pc-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  text-decoration: none;
}
.pc-preview {
  margin-left: auto;
}
.cl-card footer .icon,
.pc-preview .icon {
  width: 15px;
  height: 15px;
}

/* Novo cliente (Agência): só o nome; o resto em "Adicionar informações". */
.rec-hint {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 12px;
}
.rec-more {
  border-radius: 14px;
  background: var(--subtle);
}
.rec-more > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.rec-more > summary::-webkit-details-marker,
.rec-more > summary::before {
  display: none;
}
.rec-more > summary .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.rec-more[open] > summary .icon {
  transform: rotate(45deg);
}
.rec-more > :not(summary) {
  margin: 0 14px 14px;
}

/* Clientes (Agência, 02/11/2026): perfil do cliente no modelo do orkestrya. */
.clp-card {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.clp-card h2 {
  margin: 0 0 10px;
  font-size: 15px;
}
.clp-hero {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.clp-cover {
  height: 96px;
  background: var(--cover);
}
.clp-id {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 20px 18px;
}
.clp-face {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: none;
  margin-top: -46px;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: var(--ink);
  color: var(--cover);
  font-size: 28px;
  font-weight: 800;
}
.clp-name {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.clp-name h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.clp-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.clp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.clp-state {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1f6b45;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.clp-state.is-off {
  background: var(--subtle);
  color: var(--muted);
}
.clp-actions .subtle-button {
  height: 34px;
  border-radius: 999px;
  font-size: 12px;
}
.clp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
}
.clp-sheet dl {
  margin: 0;
}
.clp-sheet dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.clp-sheet dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.clp-sheet dt .icon {
  width: 15px;
  height: 15px;
}
.clp-sheet dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clp-sheet dd a {
  color: inherit;
}
.clp-dark {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #15161a;
  color: #fff;
}
.clp-dark > small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.clp-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.clp-kpis b {
  display: block;
  overflow: hidden;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clp-kpis span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
/* "Contas engajadas" no mesmo tom das outras (não segue a cor do sistema). */
.clp-kpis .is-accent b,
.clp-kpis .is-accent span {
  color: inherit;
}
.clp-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.clp-link > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.clp-link b {
  display: block;
  font-size: 14px;
}
.clp-link small {
  color: var(--muted);
  font-size: 12px;
}
.clp-link-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.clp-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.clp-sc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.clp-sc .icon {
  width: 14px;
  height: 14px;
}
.clp-sc:hover,
.clp-link:hover {
  opacity: 0.9;
}
/* O link "Ver como o cliente" não herda a cor escura de a:hover. */
a.clp-sc:hover,
a.clp-sc:focus-visible {
  border-color: rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  opacity: 1;
}
.clp-posts > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.clp-posts > header h2 {
  margin: 0;
}
.clp-strip {
  display: grid;
  grid-auto-columns: 150px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.clp-post {
  position: relative;
  overflow: hidden;
  height: 200px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--subtle);
  cursor: pointer;
  scroll-snap-align: start;
}
.clp-post img,
.clp-post-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: var(--muted);
}
.clp-post-cap {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  padding: 26px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  text-align: left;
}
.clp-post-cap b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clp-post-cap small {
  font-size: 11px;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .clp-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .clp-cover {
    height: 72px;
  }
  .clp-id {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 0 16px 16px;
  }
  .clp-face {
    width: 72px;
    height: 72px;
    margin-top: -36px;
    font-size: 22px;
  }
  .clp-name {
    flex-basis: calc(100% - 90px);
  }
  .clp-actions {
    width: 100%;
  }
  .clp-card {
    padding: 16px;
  }
  .clp-kpis {
    gap: 6px;
  }
  .clp-strip {
    grid-auto-columns: 128px;
  }
  .clp-post {
    height: 170px;
  }
}

/* Contas sociais do cliente (modelo mLabs, 02/11/2026). */
.sa-panel > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.sa-panel > header h2 {
  margin: 0;
  font-weight: 500;
}
.sa-panel > header small {
  color: var(--muted);
  font-size: 12px;
}
.sa-accts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.sa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 168px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}
.sa-card strong {
  font-size: 13px;
  font-weight: 600;
}
.sa-card small {
  color: var(--muted);
  font-size: 11px;
}
.sa-info {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  cursor: help;
}
.sa-btn {
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sa-btn.is-outline {
  background: var(--surface);
  color: var(--ink);
}
.sa-soon {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.sa-card.is-soon .sa-mark {
  opacity: 0.55;
}
.sa-card.is-expired {
  border: 2px solid var(--danger, #e0464f);
  background: var(--subtle);
}
.sa-mark.is-faded {
  opacity: 0.35;
  filter: grayscale(1);
}
.sa-alert {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 10px;
  border-radius: 0 12px 0 10px;
  background: var(--danger, #e0464f);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.sa-card.is-expired .sa-info {
  top: 28px;
}
.sa-card.is-on {
  align-items: flex-start;
  justify-content: flex-start;
  border: 0;
  background: var(--tone);
  color: #fff;
  text-align: left;
}
.sa-card.is-on > header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.sa-card.is-on > header b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa-card.is-on .sa-mark {
  display: grid;
  place-items: center;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
}
.sa-gear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.sa-gear .icon {
  width: 18px;
  height: 18px;
}
.sa-tag {
  padding: 2px 8px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sa-card.is-on small {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.85);
}
.sa-more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.sa-more .subtle-button {
  gap: 6px;
}
.sa-menu p {
  margin: 0 0 12px;
}
@media (max-width: 600px) {
  .sa-accts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sa-card {
    min-height: 150px;
    padding: 14px 8px;
  }
}

/* Área do cliente na equipe (03/11/2026): links de aprovação ao lado do
   acesso com login; conversa e faturas na linha de baixo. */
.cf-page > .cf-grid + .cf-grid {
  margin-top: 16px;
}
.cf-grid > .pc-invoices {
  margin-top: 0;
}
.pc-page-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.pc-page-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--subtle);
}
.pc-page-list li > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.pc-page-list strong {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pc-page-list small {
  color: var(--muted);
  font-size: 11px;
}
.pc-page-list .subtle-button {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.pc-page-list .pc-face {
  color: #fff;
}
.pc-page-list .pc-face .icon {
  width: 15px;
  height: 15px;
}
@media (max-width: 600px) {
  .pc-page-list li {
    flex-wrap: wrap;
  }
  .pc-page-list li .subtle-button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------- Clientes: personalizar, blocos e assistente (03/11/2026) ---------- */
.clp-cover {
  position: relative;
}
.clp-style-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.92);
  color: #15161a;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.clp-style-btn .icon {
  width: 15px;
  height: 15px;
}
.clp-view.is-on {
  background: var(--ink);
  color: var(--on-ink);
}
.clp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.clp-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 190px;
  padding: 0 16px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.clp-block:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.clp-block-cover {
  align-self: stretch;
  height: 58px;
  margin: 0 -16px;
  background: var(--cover);
}
.clp-block .clp-face {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border-width: 4px;
  font-size: 18px;
}
.clp-block b {
  margin-top: 6px;
  font-size: 15px;
}
.clp-block small {
  color: var(--muted);
  font-size: 12px;
}
.clp-block-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
}
.clp-block-meta > span:not(.clp-state) {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--subtle);
}
.clp-block-meta .is-late {
  background: #fde8ea !important;
  color: #9f1239;
}
.clp-block.is-new {
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-style: dashed;
  text-align: center;
}
.clp-block.is-new > .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.clp-style-preview {
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--subtle);
}
.clp-style-preview .clp-cover {
  display: block;
  height: 70px;
}
.clp-style-preview .clp-face {
  width: 64px;
  height: 64px;
  margin: -32px 0 12px 16px;
}
.field-label {
  display: block;
  margin: 4px 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.wz-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.wz-colors label {
  position: relative;
  cursor: pointer;
}
.wz-colors input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.wz-colors i {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface);
}
.wz-colors input:checked + i {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--ink);
}
.wz-colors input:focus-visible + i {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.wz-free input {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
/* Assistente de novo cliente. */
#modal.wz-modal {
  width: min(620px, calc(100% - 24px));
}
.wz-steps {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.wz-steps li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.wz-steps li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  font-size: 11px;
}
.wz-steps li > span .icon {
  width: 12px;
  height: 12px;
}
.wz-steps li.is-on {
  background: var(--ink);
  color: var(--on-ink);
}
.wz-steps li.is-on > span {
  color: var(--ink);
}
.wz-steps li.is-done {
  background: var(--accent-soft);
  color: var(--ink);
}
.wz-steps li.is-done > span {
  background: var(--accent);
  color: var(--on-accent);
}
.wz-lead {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
}
.wz-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.wz-mode button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wz-mode button.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.wz-mode small {
  color: var(--muted);
  font-size: 12px;
}
.wz-palettes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.wz-palettes label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.wz-palettes input {
  position: absolute;
  opacity: 0;
}
.wz-palettes label:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.wz-palettes label > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.wz-palettes i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.wz-nets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 14px;
}
.wz-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.wz-note .icon {
  flex: none;
  width: 15px;
  height: 15px;
}
.wz .modal-footer .primary .icon {
  width: 15px;
  height: 15px;
  margin-left: 4px;
}
@media (max-width: 600px) {
  .wz-steps li {
    justify-content: center;
    padding: 8px 4px;
    font-size: 0;
  }
  .wz-mode {
    grid-template-columns: minmax(0, 1fr);
  }
  .clp-style-btn span,
  .clp-style-btn {
    font-size: 0;
    gap: 0;
  }
}

/* Capa atrás e ícone na frente (o botão Personalizar deixou a capa relativa). */
.clp-hero .clp-cover {
  z-index: 0;
}
.clp-hero .clp-id {
  position: relative;
  z-index: 1;
}
/* Imagem própria na capa e no ícone do cliente (03/11/2026). */
.clp-cover,
.clp-block-cover {
  background:
    var(--cover-img, linear-gradient(transparent, transparent)) center / cover
      no-repeat,
    var(--cover);
}
.clp-face.has-img {
  overflow: hidden;
  padding: 0;
  background: var(--surface);
}
.clp-face.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Prévia de Personalizar: o ícone fica na frente da capa. */
.clp-style-preview .clp-face {
  position: relative;
  z-index: 1;
  border: 4px solid var(--surface);
}
.clp-uploads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.clp-uploads > small {
  flex: 1 1 100%;
}
.clp-upload {
  display: flex;
  align-items: center;
  gap: 4px;
}
.clp-upload .subtle-button {
  cursor: pointer;
}

/* Propostas: dados do cliente novo (03/11/2026). */
.pr-client {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  min-width: 0;
}
.pr-client[hidden] {
  display: none;
}
.pr-client legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.pr-client legend .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.pr-client-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.pr-client .field {
  margin: 0;
}
.pr-more summary {
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.pr-more[open] summary {
  margin-bottom: 10px;
}
.pr-client-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.pr-client-tag .icon {
  flex: none;
  width: 14px;
  height: 14px;
}
.pr-client-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
}
/* Cobrança da proposta: mensal ou valor único. */
.pr-billing {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft, #f4f4f5);
}
.pr-billing label {
  position: relative;
  cursor: pointer;
}
.pr-billing input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pr-billing span {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.pr-billing input:checked + span {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm, 0 1px 2px rgb(0 0 0 / 0.08));
}
.pr-billing input:focus-visible + span {
  outline: 2px solid var(--accent);
}
/* Propostas: cláusulas do contrato editáveis (03/11/2026). */
.pr-clauses {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pr-clauses summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.pr-clauses summary .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.pr-clauses[open] summary {
  margin-bottom: 8px;
}
.pr-clause-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}
.pr-clause {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: var(--soft, #f4f4f5);
}
.pr-clause input,
.pr-clause textarea {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.pr-clause input {
  font-weight: 700;
}
.pr-clause textarea {
  grid-column: 1 / -1;
  resize: vertical;
}
.pr-clause .cf-del {
  grid-row: 1;
  grid-column: 2;
}
.pr-clause-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Ver proposta (03/11/2026): a mesma página do cliente, só leitura. */
.pr-title {
  color: inherit;
  text-decoration: none;
}
.pr-title:hover {
  text-decoration: underline;
}
.pr-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* Miniatura, botão Abrir e leitor de arquivos (11/11/2026). */
.cf-thumb {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.cf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cf-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cf-open .icon {
  width: 15px;
  height: 15px;
}
.cf-open:hover,
.cf-down:hover {
  background: var(--line);
}
@media (max-width: 520px) {
  .cf-open span {
    display: none;
  }
  .cf-open {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
}
#modal.is-viewer {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
}
.fv {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fv-stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 14px;
  background: var(--subtle);
}
.fv-img,
.fv-video {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.fv-frame {
  width: 100%;
  height: 70vh;
  border: 0;
  background: #fff;
}
.fv-none {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}
.fv-none .icon {
  width: 34px;
  height: 34px;
}
.fv-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fv-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 160px;
}
.fv-meta b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fv-meta small {
  color: var(--muted);
  font-size: 12px;
}
.fv-gap {
  width: 36px;
}

/* Social › Comentários e DMs (11/11/2026). */
.mi-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.mi-nets,
.mi-tabs {
  display: flex;
  gap: 6px;
}
.mi-net {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mi-net.is-on {
  border-color: var(--text);
}
.mi-tab {
  padding: 0 12px;
}
.mi-tab .icon {
  width: 16px;
  height: 16px;
}
.mi-tab.is-on {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
.mi-bar > .icon-button {
  margin-left: auto;
}
.mi-empty .icon {
  width: 28px;
  height: 28px;
  color: var(--muted);
}
.mi-post {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 16px;
}
.mi-post > header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mi-post > header img,
.mi-noimg {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--subtle);
}
.mi-noimg {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.mi-post > header p {
  margin: 0 0 4px;
  font-size: 13.5px;
}
.mi-post small,
.mi-c small,
.mi-replies small {
  color: var(--muted);
  font-size: 11.5px;
}
.mi-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.mi-c {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--subtle);
}
.mi-c.is-hidden {
  opacity: 0.6;
}
.mi-c-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.mi-c p {
  margin: 4px 0 6px;
  font-size: 13.5px;
  white-space: pre-wrap;
}
.mi-replies {
  margin: 0 0 8px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--line-2);
  list-style: none;
  font-size: 13px;
}
.mi-reply {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mi-reply input {
  flex: 1;
  min-width: 0;
  min-height: 34px;
}
.mi-none {
  margin: 10px 0 0;
  font-size: 13px;
}
.mi-dms {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  min-height: 480px;
  overflow: hidden;
  border-radius: 16px;
}
.mi-convs {
  margin: 0;
  padding: 6px;
  border-right: 1px solid var(--line);
  list-style: none;
  overflow-y: auto;
}
.mi-conv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mi-conv:hover,
.mi-conv.is-on {
  background: var(--subtle);
}
.mi-conv small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mi-conv em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.mi-unread {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.mi-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 14px;
}
.mi-thread.is-empty {
  place-content: center;
  text-align: center;
}
.mi-thread > header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mi-msgs {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  max-height: 52vh;
  margin: 0;
  padding: 12px 0;
  overflow-y: auto;
  list-style: none;
}
.mi-msgs li {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 14px 14px 14px 4px;
  background: var(--subtle);
}
.mi-msgs li.is-mine {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--text);
  color: var(--surface);
}
.mi-msgs li.is-mine small {
  color: inherit;
  opacity: 0.7;
}
.mi-msgs p {
  margin: 0;
  font-size: 13.5px;
  white-space: pre-wrap;
}
.mi-msgs small {
  color: var(--muted);
  font-size: 10.5px;
}
.mi-send {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.mi-send textarea {
  flex: 1;
  min-width: 0;
}
.mi-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
}
@media (max-width: 720px) {
  .mi-dms {
    grid-template-columns: 1fr;
  }
  .mi-convs {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mi-bar > .icon-button {
    margin-left: 0;
  }
}
/* Escolha da Página do Facebook na ficha do cliente. */
.meta-pick {
  display: grid;
  gap: 8px;
}
.meta-pick-row {
  display: flex !important;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.meta-pick-row span {
  display: grid;
}
.meta-pick-row small {
  color: var(--muted);
}

/* Área do cliente › escolha do cliente (12/11/2026). */
.pcc-lead {
  margin: -4px 0 16px;
}
.pcc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.pcc-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.pcc-card:hover,
.pcc-card:focus-visible {
  border-color: var(--pcc);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--pcc) 18%, transparent);
  transform: translateY(-1px);
}
.pcc-card > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.pcc-face {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--pcc);
  color: #fff;
  font-weight: 800;
}
.pcc-text {
  display: grid;
  min-width: 0;
}
.pcc-text b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcc-text small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 650;
}
.pcc-chip i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pcc);
  color: #fff;
  font-size: 12px;
  font-style: normal;
}
