/* ═══════════════════════════════════════════════════
   CALENDAR
   ═══════════════════════════════════════════════════ */
.content-area {
  padding: 20px 28px;
  flex: 1;
}

.calendar-wrap { max-width: 1860px; margin: 0 auto; }

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 118px;
  padding: 8px;
  position: relative;
  transition: border-color var(--transition);
}

.day-cell:hover { border-color: var(--border-strong); }
.day-cell.other-month { background: transparent; border-color: transparent; }
.day-cell.today { border-color: var(--brand); border-width: 1.5px; }

.day-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1;
}

.day-cell.today .day-num {
  color: var(--surface);
  background: var(--brand);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.day-cell.other-month .day-num { opacity: 0.25; }

/* Bolinhas — visão compacta do calendário no celular */
.day-cell.tappable { cursor: pointer; }
.day-cell.tappable:active { background: var(--bg); }
.day-cell.has-items { border-color: var(--border-strong); }

.day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
}

.day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.day-dot.dot-reel      { background: var(--reel); }
.day-dot.dot-stories   { background: var(--stories); }
.day-dot.dot-feed      { background: var(--feed); }
.day-dot.dot-carrossel { background: var(--carousel); }
.day-dot.dot-reuniao   { background: var(--reuniao); }
.day-dot.dot-gravacao  { background: var(--gravacao); }

.day-dots-more {
  font-size: 9px;
  font-weight: 600;
  line-height: 8px;
  color: var(--text-muted);
}

/* Content items in calendar */
.content-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 5px 7px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  border-left: 2.5px solid transparent;
}

.content-item:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.content-item.type-reel      { border-left-color: var(--reel); }
.content-item.type-stories   { border-left-color: var(--stories); }
.content-item.type-feed      { border-left-color: var(--feed); }
.content-item.type-carrossel { border-left-color: var(--carousel); }

.content-item.status-finalizados { opacity: 0.55; }
.content-item.status-finalizados .item-title { text-decoration: line-through; }

/* ── item espelhado de uma publicação em Conteúdos (buildCalConteudoLink) ──
   Cinza enquanto só "Agendada"; some do jeito normal quando já foi "Postada"
   de verdade (data/hora marcada já passou — ver conteudoJaPostada). */
.content-item.conteudo-link { position: relative; }
.content-item.conteudo-link.is-agendada { filter: grayscale(0.85); opacity: 0.75; }
/* Prévia flutuante única (ver #calHoverPreview em agenda.js): fica fora do
   card na árvore do DOM (anexada ao body), por isso não herda o filtro
   grayscale do .is-agendada acima nem fica presa/recortada dentro da célula
   do calendário. Posição é `fixed` e atualizada via JS a cada mousemove,
   pra acompanhar o cursor. */
.cal-hover-preview {
  display: none; position: fixed; pointer-events: none;
  width: 130px; height: 130px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); z-index: 200; background: #000;
}
.cal-hover-preview.is-visible { display: block; }
.cal-hover-preview img, .cal-hover-preview video { width: 100%; height: 100%; object-fit: cover; }

.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
}

.item-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
}

.badge-reel      { background: var(--reel-bg);     color: var(--reel); }
.badge-stories   { background: var(--stories-bg);  color: var(--stories); }
.badge-feed      { background: var(--feed-bg);      color: var(--feed); }
.badge-carrossel { background: var(--carousel-bg);  color: var(--carousel); }

/* alias for JS that uses item-type-badge */
.item-type-badge { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; }

.item-time { font-size: 10px; color: var(--text-muted); }

.item-title {
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-responsavel {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.item-status-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.5;
  margin-bottom: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slabel-criando     { background: var(--et-criando-bg);     color: var(--et-criando); }
.slabel-aprovacao   { background: var(--et-aprovacao-bg);   color: var(--et-aprovacao); }
.slabel-aprovados   { background: var(--et-aprovados-bg);   color: var(--et-aprovados); }
.slabel-agendados   { background: var(--et-agendados-bg);   color: var(--et-agendados); }
.slabel-finalizados { background: var(--et-finalizados-bg); color: var(--et-finalizados); }

/* Add button */
.add-item-btn {
  width: 100%;
  background: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  transition: all var(--transition);
  display: none;
  line-height: 1;
}

.mode-editor .add-item-btn { display: block; }
.mode-editor .add-item-btn:hover { background: var(--brand-faint); border-color: var(--brand-light); color: var(--brand); }

/* Confirm button (client) */
.confirm-btn {
  width: 100%;
  padding: 4px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 4px;
  transition: all var(--transition);
  display: none;
  font-family: var(--fonte);
}

.content-item.confirmed .confirm-btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.mode-client .confirm-btn { display: block; }

/* Solicitar alteração (card do calendário) */
.item-actions { margin-top: 4px; }
.mode-client .item-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.mode-client .item-actions .confirm-btn,
.mode-client .item-actions .request-btn { flex: 1 1 60px; margin-top: 0; }

.request-btn {
  padding: 4px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 4px;
  transition: all var(--transition);
  display: none;
  font-family: var(--fonte);
  line-height: 1.2;
}
.mode-client .request-btn { display: block; }
.request-btn:hover { border-color: var(--stories); color: var(--stories); }
.check-icon { display: none; }
.content-item.confirmed .check-icon { display: inline; }
.content-item.confirmed .uncheck-icon { display: none; }

/* ═══════════════════════════════════════════════════
   LIST VIEW
   ═══════════════════════════════════════════════════ */
.list-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: none;
}

.list-wrap.active { display: block; }

.list-day-group { margin-bottom: 32px; }

.list-day-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.list-day-num {
  font-family: var(--fonte);
  font-size: 32px;
  font-weight: 300;
  color: var(--brand);
  line-height: 1;
  min-width: 38px;
  text-align: right;
}

.list-day-weekday {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  text-transform: capitalize;
}

.list-day-month {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.list-day-line { flex: 1; height: 1px; background: var(--border); }

.list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  border-left: 3px solid transparent;
}

.list-item:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }

.list-item.type-reel      { border-left-color: var(--reel); }
.list-item.type-stories   { border-left-color: var(--stories); }
.list-item.type-feed      { border-left-color: var(--feed); }
.list-item.type-carrossel { border-left-color: var(--carousel); }

.list-item.status-finalizados { opacity: 0.6; }
.list-item.status-finalizados .list-item-title { text-decoration: line-through; }

.list-item-left { text-align: center; padding-top: 2px; }
.list-item-time { font-size: 12px; color: var(--text-muted); }
.list-item-badge { margin-top: 6px; }

.list-item-title { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.5; }

.list-item-script {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
}

.list-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.list-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 100px;
}

.status-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-badge.criando     { background: var(--et-criando-bg);     color: var(--et-criando); }
.status-badge.aprovacao   { background: var(--et-aprovacao-bg);   color: var(--et-aprovacao); }
.status-badge.aprovados   { background: var(--et-aprovados-bg);   color: var(--et-aprovados); }
.status-badge.agendados   { background: var(--et-agendados-bg);   color: var(--et-agendados); }
.status-badge.finalizados { background: var(--et-finalizados-bg); color: var(--et-finalizados); }

.list-confirm-btn {
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  display: none;
  font-family: var(--fonte);
  white-space: nowrap;
}

.list-item.confirmed .list-confirm-btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.mode-client .list-confirm-btn { display: block; }

.list-request-btn {
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  display: none;
  font-family: var(--fonte);
  white-space: nowrap;
}
.mode-client .list-request-btn { display: block; }
.list-request-btn:hover { border-color: var(--stories); color: var(--stories); }

.list-item-comment {
  font-size: 11px;
  color: var(--stories);
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--stories-bg);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--stories);
  font-style: italic;
}

.item-comment-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stories);
  margin-left: 3px;
  vertical-align: middle;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 40px; margin-bottom: 14px; opacity: 0.5; }
.empty-state-title { font-size: 16px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state-text { font-size: 13px; line-height: 1.7; }

/* ── A TELA VAZIA QUE ENSINA (utils.js#vazioQueEnsina) ─────────────────
   Aparece só na PRIMEIRA vez de cada aba — quando não existe nada ali
   ainda. Tela vazia é a melhor chance de ensinar: a pessoa chegou por
   conta própria, com a dúvida já formada. Por isso ela responde três
   coisas, sempre nesta ordem — o que é isto · como funciona em 3 passos ·
   qual é o único próximo passo — e traz UM botão só.
   ⚠️ Não confundir com vazio POR FILTRO: ali a pessoa já conhece a tela e
   o que ela precisa saber é que o filtro escondeu tudo. Esses continuam
   com a frase curta de sempre. */
/* `grid-column` porque quase toda lista do app é grid: sem isto a caixa
   nasce dentro de UMA coluna (321px de 3 colunas, encostada à esquerda) e
   parece um cartão quebrado em vez de uma mensagem da tela. Fora de grid
   a propriedade é ignorada, então vale para todos os casos. */
.vz { grid-column: 1 / -1; text-align: center; padding: 44px 24px; max-width: 470px; margin: 0 auto; }
.vz-ico { font-size: 34px; line-height: 1; }
.vz-tit { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-top: 12px; }
.vz-txt { font-size: 13.5px; color: var(--text-secondary); margin-top: 8px; line-height: 1.7; }
.vz-lista { text-align: left; display: inline-block; margin: 18px auto 0; }
.vz-item { display: flex; gap: 9px; align-items: flex-start; font-size: 13px;
  color: var(--text-secondary); margin-bottom: 7px; line-height: 1.55; }
.vz-item-n { color: var(--brand); font-weight: 600; flex-shrink: 0; }
.vz-acao { margin-top: 22px; }

/* ── PRIMEIRA VEZ: a tela mostra UMA coisa só ──────────────────────────
   Enquanto não existe nenhum dado, some tudo que serve para OPERAR dado:
   busca vazia, filtro de zero-de-zero, métrica zerada e o botão de criar
   repetido na barra. Três motivos, nesta ordem de importância:
     1. o ruído empurra a explicação para baixo da dobra — a pessoa vê
        sete filtros zerados antes de ler para que serve a tela;
     2. filtrar nada e buscar em lista vazia são becos: a pessoa clica,
        não acontece nada, e conclui que o app está quebrado;
     3. o botão de criar passa a existir em UM lugar só — o da mensagem,
        que a pessoa alcança logo depois de ler o porquê.
   Tudo volta sozinho no instante em que o primeiro registro existe. Isto
   NÃO é esconder função: a função ainda não tem sobre o que agir. */
.is-primeira-vez .prod-kpis,
.is-primeira-vez .prod-bar,
.is-primeira-vez .prod-filtros,
.is-primeira-vez .notes-toolbar,
.is-primeira-vez .ccg-tabs,
.is-primeira-vez .reunioes-toolbar,
.is-primeira-vez .crm-kpis,
.is-primeira-vez .crm-bar,
.is-primeira-vez .crm-chips,
/* "arraste aqui quem não fechou" sem nenhum cartão para arrastar é
   instrução sem objeto — volta junto com o primeiro lead */
.is-primeira-vez .crm-perdidos { display: none; }

/* ═══════════════════════════════════════════════════
   KANBAN
   ═══════════════════════════════════════════════════ */
#kanbanSection { display: none; }
#tarefasSection { display: none; }

.section-header {
  padding: 20px 28px 0;
  max-width: 1860px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--fonte);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.kanban-wrap {
  padding: 20px 28px 28px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 1860px;
  margin: 0 auto;
}

.kanban-col {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.kanban-col-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.kanban-col-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.kanban-col.col-ideia    .kanban-col-header::before { background: var(--warning); }

.kanban-col.col-aprovado .kanban-col-header::before { background: var(--success); }
.kanban-col.col-afazer    .kanban-col-header::before { background: var(--feed); }
.kanban-col.col-fazendo   .kanban-col-header::before { background: var(--warning); }
.kanban-col.col-concluido .kanban-col-header::before { background: var(--success); }

/* Badge de prioridade (tarefas) */
.prio-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 8px;
  border-radius: 20px;
}
.prio-alta  { background: var(--error-bg);   color: var(--error); }
.prio-media { background: var(--warning-bg); color: var(--warning); }
.prio-baixa { background: var(--success-bg); color: var(--success); }

.kanban-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.kanban-col-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fonte);
}

.kanban-cards {
  padding: 12px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.kanban-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.kanban-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kanban-card-moves { display: flex; gap: 4px; }

.kanban-move-btn {
  width: 26px;
  height: 26px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.kanban-move-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.kanban-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 5px;
}

.kanban-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.kanban-card-author { font-size: 11px; color: var(--text-muted); }

.kanban-card-actions { display: flex; gap: 4px; }

.kanban-card-edit, .kanban-card-del {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.kanban-card-edit:hover { background: var(--bg); color: var(--text-primary); }
.kanban-card-del:hover  { background: var(--error-bg); border-color: rgba(194,65,65,0.3); color: var(--error); }

.kanban-add-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  padding: 9px;
  background: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--fonte);
  text-align: center;
}

.kanban-add-btn:hover { background: var(--brand-faint); border-color: var(--brand-light); color: var(--brand); }

.kanban-empty {
  text-align: center;
  padding: 20px 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

#marcaSection { display: none; }

/* Botão "+ Nova X" compartilhado por várias abas (Conteúdos, Reuniões...). */
.progress-add-btn {
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--fonte);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.progress-add-btn:hover { background: var(--brand-dark); }

/* ── Mural de ideias (blocos de notas) ── */
.notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* aviso da cliente (se houver) à esquerda, ações à direita */
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}


/* Aviso só da cliente, no lugar onde ficaria o "+ Nova publicação" (que ela
   nem vê — ver .mode-client #conteudosAddBtn). Chama a atenção sem ser um
   alarme: mesma cor de "aguardando aprovação" (--warning), não --error. */
.cc-cliente-aviso {
  font-size: 13px; font-weight: 600; color: var(--warning);
  padding: 7px 14px;
  flex: 1 0 100%; text-align: center; /* linha própria, centralizada — pedido dele */
}

/* Em modo cliente, "Prévia do feed" fica sozinha (o "+ Nova publicação" some)
   — desce pra própria linha, centralizada, igual o aviso acima dela. */
.mode-client .notes-toolbar-actions { flex: 1 0 100%; justify-content: center; }


.notes-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 0;
}


























/* ═══════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,43,43,0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

.modal-overlay.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--fonte);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close:hover { border-color: var(--border-strong); color: var(--text-primary); }

/* Form fields */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--fonte);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: all var(--transition);
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
  background: var(--surface);
}

.field textarea { resize: vertical; min-height: 72px; line-height: 1.6; }

/* explicaçãozinha embaixo de um campo (ex: por que "Aprovado" não está na lista) */
.field-hint { margin-top: 6px; font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* modal do cliente: mais seções e campos, então um pouco mais largo */
.client-modal { max-width: 560px; }

/* título de seção dentro do modal do cliente (Gerais/Redes Sociais/Financeiro) */
.nc-section {
  font-family: var(--fonte);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 22px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nc-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ⚠️ O atributo `hidden` sozinho NÃO esconde estas peças. Ele vale como
   `display:none` da folha do navegador, que perde para qualquer regra
   nossa com display — e `.row-2` é `display:grid`. Sem esta linha, o
   cadastro "de duas linhas" continuava mostrando a ficha inteira: o
   JavaScript marcava tudo como escondido e a tela ignorava. Pego no
   teste de tela em 14/08/2026. */
#ncFields > [hidden], #ncEquipe[hidden], #ncMais[hidden] { display: none !important; }

/* ── Cadastro em duas linhas ───────────────────────────────────────────
   Rodapé do CADASTRO de cliente: a saída para quem quer preencher a ficha
   inteira agora e o atalho de colar uma lista. São links, não botões: a
   ação principal da janela é uma só (Cadastrar), e dois botões de verdade
   competindo com ela reintroduziriam a dúvida que o cadastro enxuto veio
   tirar. */
.nc-mais {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border);
}
.nc-mais button {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--brand); font-weight: 500;
}
.nc-mais button:hover { text-decoration: underline; }
.nc-mais .nc-mais-sep { color: var(--border-strong); }
/* no celular os dois links não cabem lado a lado: viram lista, e o ponto
   separador sai de cena (sozinho no fim da linha ele vira sujeira) */
@media (max-width: 480px) {
  .nc-mais { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nc-mais .nc-mais-sep { display: none; }
}

/* ── "Falta completar" (só no Editar cliente) ──────────────────────────
   Cinza-azulado de propósito: este aviso NÃO é problema, é lembrete. A
   paleta de alerta (vermelho/laranja) é reservada para o que precisa de
   ação hoje — e ficha incompleta nunca precisa. */
.nc-completar {
  display: flex; gap: 12px; align-items: flex-start;
  background: #F4F6FB; border: 1px solid #E3E8F2;
  border-radius: var(--radius); padding: 13px 14px; margin-bottom: 18px;
}
.nc-completar-ico { font-size: 15px; line-height: 1.2; opacity: .75; }
.nc-completar-corpo { flex: 1; min-width: 0; }
.nc-completar-tit { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.nc-completar-txt { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; line-height: 1.6; }
.nc-completar-txt button {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.nc-completar-barra {
  height: 4px; border-radius: 3px; background: #E1E6F0; margin-top: 9px; overflow: hidden;
}
.nc-completar-barra i { display: block; height: 100%; border-radius: 3px; background: var(--grad-brand); }
.nc-completar-x {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 6px;
}
.nc-completar-x:hover { background: #E7ECF6; color: var(--text-primary); }
/* fechou no ✕: o lembrete encolhe, mas continua à vista — controle que
   desaparece por completo faz a pessoa concluir que a função não existe */
.nc-completar-min { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.nc-completar-min button {
  background: none; border: none; padding: 0; font: inherit; color: var(--brand); cursor: pointer;
}

/* ── Adicionar vários clientes (clientes-lote.js) ──────────────────────
   A prévia é o coração desta janela: ninguém aperta "criar 12 clientes"
   sem antes ver, linha por linha, o que o Órbitta entendeu do que foi
   colado. */
.lote-area {
  width: 100%; min-height: 150px; font-family: inherit; font-size: 13.5px;
  line-height: 1.7; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-hover); resize: vertical;
  color: var(--text-primary);
}
.lote-area:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.lote-area:disabled { opacity: .6; }
.lote-previa { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 6px; }
.lote-previa-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 13px; background: var(--surface-hover); border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.lote-linha {
  display: flex; align-items: center; gap: 10px; padding: 9px 13px;
  border-bottom: 1px solid var(--border); font-size: 13px; cursor: pointer;
}
.lote-linha:last-child { border-bottom: none; }
/* repetido: fundo âmbar e caixinha desmarcada — o erro caro aqui é criar
   um cliente que já existe, e ninguém percebe isso na hora */
.lote-linha.is-dup { background: #FFF9F0; }
.lote-linha input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; flex-shrink: 0; }
.lote-nome { font-weight: 500; color: var(--text-primary); }
.lote-handle { color: var(--text-muted); font-size: 12.5px; }
.lote-aviso {
  margin-left: auto; font-size: 11.5px; color: #A96A12; background: #FFF1D9;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.lote-vazio { padding: 22px 13px; text-align: center; color: var(--text-muted); font-size: 13px; }
.lote-barra { height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; margin: 18px 0 8px; }
.lote-barra i { display: block; height: 100%; width: 0; border-radius: 3px;
  background: var(--grad-brand); transition: width .2s ease; }
.lote-andamento { font-size: 12.5px; color: var(--text-secondary); }

/* ── Interruptor (campo type:'switch' do CLIENT_FIELDS) ──
   A linha inteira é o <label>, então clicar no título ou na dica também
   liga/desliga — alvo grande, que no celular é a diferença entre acertar
   e errar. A caixinha nativa fica escondida mas VIVA: é ela que responde
   ao teclado e ao leitor de tela; o trilho é só a roupa. */
/* ⚠️ Este campo NÃO usa a classe `.field`, de propósito. A regra
   `.field label` (maiúsculas, 11px, display:block) tem especificidade
   MAIOR que uma classe sozinha — e como aqui a linha inteira é um
   <label>, ela vencia: o título saía em caixa alta e o trilho do
   interruptor caía por cima do texto. Espaçamento replicado abaixo. */
.field-switch { margin-bottom: 10px; }
.sw-linha {
  position: relative;   /* a caixinha nativa se esconde DENTRO desta linha */
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
  /* nenhuma herança de `.field label` chega aqui, mas deixar explícito
     evita que uma regra futura de formulário volte a atropelar */
  text-transform: none; letter-spacing: normal; margin: 0;
}
.sw-linha:hover { border-color: var(--brand); background: var(--brand-faint); }
.sw-input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-trilho {
  flex-shrink: 0; width: 38px; height: 22px; border-radius: 999px;
  background: var(--border-strong); position: relative; margin-top: 1px;
  transition: background var(--transition);
}
.sw-bolinha {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.sw-input:checked + .sw-trilho { background: var(--brand); }
.sw-input:checked + .sw-trilho .sw-bolinha { transform: translateX(16px); }
.sw-input:focus-visible + .sw-trilho { box-shadow: 0 0 0 3px var(--brand-ring); }
.sw-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-titulo {
  font-size: 13.5px; font-weight: 600; color: var(--text-primary);
  text-transform: none; letter-spacing: normal;
}
.sw-dica {
  font-size: 12px; color: var(--text-muted); line-height: 1.45;
  text-transform: none; letter-spacing: normal; font-weight: 400;
}

/* Equipe responsável (seção do cadastro do cliente). As caixinhas viram
   uma grade que se adapta: 2 colunas no computador, 1 no celular. */
.nc-equipe-nota {
  margin: 0 0 10px; font-size: 12.5px; line-height: 1.45;
  color: var(--text-secondary);
}
.nc-equipe-lista {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.nc-equipe-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13.5px; color: var(--text-primary);
}
.nc-equipe-item:hover { border-color: var(--brand); }
.nc-equipe-item input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.nc-equipe-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* campo de etiquetas (ex: Serviços contratados) — digita e aperta Enter */
.tags-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all var(--transition);
}
.tags-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
  background: var(--surface);
}
.tags-box input {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  background: transparent;
  padding: 4px 2px;
  font-family: var(--fonte);
  font-size: 13px;
  color: var(--text-primary);
}
.tag-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tag-chip-x {
  border: none;
  background: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 0;
}
.tag-chip-x:hover { color: #fff; }

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn-primary {
  flex: 1;
  padding: 11px 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--fonte);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 4px 14px var(--brand-ring); }
.btn-primary:disabled { background: var(--text-muted); cursor: not-allowed; opacity: 0.7; }
.btn-primary:disabled:hover { background: var(--text-muted); box-shadow: none; }

.btn-secondary {
  padding: 11px 18px;
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--fonte);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover { border-color: var(--border-strong); color: var(--text-primary); }

.btn-danger {
  padding: 11px 16px;
  background: none;
  color: var(--error);
  border: 1px solid rgba(194,65,65,0.25);
  border-radius: var(--radius);
  font-family: var(--fonte);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover { background: var(--error-bg); }

/* Detail modal */
.detail-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
}

/* ── DAY MODAL (popup do dia — celular) ── */
.day-modal { max-width: 440px; }
.day-modal-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.day-modal-body { display: flex; flex-direction: column; gap: 8px; }
.day-modal-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 24px 0;
}
/* Cards do popup: maiores e mais legíveis que na grade */
.day-modal-body .content-item { margin-bottom: 0; padding: 10px 12px; }
.day-modal-body .item-title { font-size: 14px; -webkit-line-clamp: unset; }
.day-modal-body .item-time { font-size: 12px; }
.day-modal-body .item-responsavel { font-size: 12px; }
.day-modal-body .item-status-label { font-size: 9px; }

.detail-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-h {
  font-family: var(--fonte);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.detail-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.detail-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-script {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  white-space: pre-wrap;
  background: var(--bg);
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.detail-comment-area { margin-bottom: 20px; }

.detail-comment-area textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--fonte);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: all var(--transition);
}

.detail-comment-area textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
  background: var(--surface);
}

/* ═══════════════════════════════════════════════════
   MOBILE HAMBURGER
   ═══════════════════════════════════════════════════ */
.sidebar-toggle {
  display: none;
  position: fixed;
  /* env(): no iPhone sem botão, a bolinha sobe acima da barrinha de gesto */
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--brand);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  align-items: center;
  justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43,43,43,0.4);
  z-index: 49;
}

/* Com o editor de publicação aberto (página cheia com rodapé fixo), a
   bolinha ☰ não tem função — e flutuava POR CIMA do Salvar. Some. */
body:has(.pub-page.open) .sidebar-toggle { display: none; }

/* ═══════════════════════════════════════════════════
   BARRA DE NAVEGAÇÃO DO CELULAR (bottom nav)
   ───────────────────────────────────────────────────
   Substitui a bolinha ☰: os 4 destinos de todo dia sempre no polegar
   + "Mais" abrindo a gaveta com o resto. Só existe no bloco mobile;
   no computador a navegação segue sendo a lateral.
   z-index 45: abaixo da gaveta (50) e do véu dela (49) — com a gaveta
   aberta, o véu cobre a barra e o toque fora fecha, como sempre. */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3px 4px calc(3px + env(safe-area-inset-bottom, 0px));
}
.bn-item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  padding: 6px 2px 4px; border-radius: 10px;
}
.bn-item svg { display: block; }
.bn-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-item.active { color: var(--brand); }
/* Cliente (link ou "Ver como cliente") não navega pela agência:
   mesma regra que já escondia a bolinha ☰ nesse modo. */
.mode-client .bottom-nav { display: none; }
/* Editor de página cheia aberto: o rodapé Salvar assume o lugar. */
body:has(.pub-page.open) .bottom-nav { display: none; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .kanban-board { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Formulário de duas colunas no celular = campo de 142px, rótulo
     quebrado e exemplo cortado. Abaixo de 768px toda .row-2 empilha —
     vale para o lead do CRM, o cadastro de cliente e os irmãos. */
  .row-2 { grid-template-columns: 1fr; }

  /* O "+ em cada dia do mês" some no celular — mas a regra mora no
     07-agenda-geral-crm.css (bloco mobile): é lá que vivem as duas
     regras mais fortes (.mode-editor e #viewAgendaGeral) que forçam
     display:block, e cascata se vence no mesmo arquivo, por último. */

  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.visible { display: block; }
  /* A bolinha ☰ foi substituída pela barra de baixo (14/08); o elemento
     fica no HTML mas nunca aparece — quem abre a gaveta agora é o "Mais". */
  .bottom-nav { display: flex; }

  .main { margin-left: 0; }

  .top-bar { padding: 12px 16px; }

  .content-area { padding: 14px 16px; }

  .kanban-wrap { padding: 14px 16px; }

  .section-header { padding: 14px 16px 0; }

  .month-title { min-width: auto; font-size: 18px; }
  .stats-row { display: none; }
  .progress-inline { display: none; }

  /* Calendário compacto: o conteúdo vira bolinhas coloridas (toque abre o dia) */
  .weekdays, .cal-grid { gap: 4px; }
  .day-cell { min-height: 58px; padding: 6px 5px; }
  .weekday { font-size: 10px; }

  .list-item { grid-template-columns: 60px 1fr; }
  .list-item-right { display: none; }
  .active-filter-bar { padding: 8px 16px; }
  .afb-clear { margin-left: 0; }

  /* o painel de filtros não pode estourar a tela do celular */
  .filter-panel { width: calc(100vw - 32px); max-width: 320px; }
  .filter-btn-label { display: none; }
  .filter-btn { padding: 6px 9px; }

  .modal, .detail-modal { padding: 20px; }

  .month-nav { gap: 8px; }
}

/* ── new item type colors ── */
.content-item.type-reuniao  { border-left-color: var(--reuniao); }
.content-item.type-gravacao { border-left-color: var(--gravacao); }
.badge-reuniao  { background: var(--reuniao-bg);  color: var(--reuniao); }
.badge-gravacao { background: var(--gravacao-bg); color: var(--gravacao); }
.list-item.type-reuniao  { border-left-color: var(--reuniao); }
/* Prazo de entrega (módulo Produções) na agenda: cor da marca, a mesma
   do chip "entrega" no cartão do cliente — é outro assunto, não mais um
   tipo de publicação. */
.content-item.type-entrega { border-left-color: var(--brand); cursor: pointer; }
.list-item.type-entrega    { border-left-color: var(--brand); cursor: pointer; }
.badge-entrega { background: var(--brand-faint); color: var(--brand); }
.day-dot.dot-entrega { background: var(--brand); }
.list-item.type-gravacao { border-left-color: var(--gravacao); }

/* ── type picker modal ── */
.picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,43,43,0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

.picker-overlay.open { display: flex; }

.picker-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.2s ease;
}

.picker-title {
  font-family: var(--fonte);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.picker-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.picker-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.picker-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--fonte);
}

.picker-card:hover { border-color: currentColor; background: var(--bg); transform: translateY(-1px); box-shadow: var(--shadow); }

.picker-card.pc-conteudo { color: var(--brand); }
.picker-card.pc-reuniao  { color: var(--reuniao); }
.picker-card.pc-gravacao { color: var(--gravacao); }

.picker-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pc-conteudo .picker-card-icon { background: var(--brand-faint); }
.pc-reuniao  .picker-card-icon { background: var(--reuniao-bg); }
.pc-gravacao .picker-card-icon { background: var(--gravacao-bg); }

.picker-card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.picker-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.picker-cancel {
  width: 100%;
  margin-top: 14px;
  padding: 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--fonte);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.picker-cancel:hover { border-color: var(--border-strong); color: var(--text-secondary); }


/* ═══════════════════════════════════════════════════════════════════════
   O PRIMEIRO MINUTO (setup.js) — 4 telas, uma vez só
   ───────────────────────────────────────────────────────────────────────
   Desenho aprovado na maquete de 14/08/2026. A régua do topo existe para
   responder, antes de qualquer pergunta, "quanto disto ainda falta?" —
   assistente sem fim à vista é assistente que a pessoa fecha.
   ═══════════════════════════════════════════════════════════════════════ */
.setup-modal { max-width: 620px; }
.setup-passos { display: flex; gap: 6px; margin-bottom: 22px; }
.setup-passos i { height: 3px; flex: 1; border-radius: 2px; background: var(--border); }
.setup-passos i.is-feito { background: var(--grad-brand); }
.setup-tit { font-size: 21px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.setup-sub { font-size: 13.5px; color: var(--text-secondary); margin-top: 6px; line-height: 1.6; }

.setup-opcoes { display: grid; gap: 10px; margin-top: 20px; }
.setup-op {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 14px 15px; cursor: pointer; font: inherit;
  transition: border-color var(--transition), background var(--transition);
}
.setup-op:hover { border-color: var(--brand); }
.setup-op.is-escolhida { border-color: var(--brand); background: #F8F4FF; }
.setup-op-ico { font-size: 20px; line-height: 1.1; }
.setup-op-nome { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.setup-op-txt { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; line-height: 1.55; }

/* o "o que muda" — a resposta aparecendo na tela enquanto ela escolhe */
.setup-efeito {
  margin-top: 18px; background: #F4F6FB; border: 1px solid #E3E8F2;
  border-radius: var(--radius); padding: 13px 14px;
}
.setup-efeito-tit { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: var(--text-muted); }
.setup-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.setup-chip { font-size: 12px; padding: 4px 10px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); }
.setup-chip.is-fora { opacity: .45; text-decoration: line-through; }

.setup-rodape { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.setup-pular { background: none; border: none; padding: 0; font: inherit; font-size: 13px;
  color: var(--text-muted); cursor: pointer; }
.setup-pular:hover { color: var(--text-primary); text-decoration: underline; }
.setup-navega { display: flex; gap: 10px; }
.setup-navega .btn-primary[disabled] { opacity: .45; cursor: not-allowed; }

/* tela 2: a marca, com a prévia do painel do cliente ao lado */
.setup-marca { display: grid; grid-template-columns: 1fr 220px; gap: 18px; margin-top: 18px; }
.setup-previa-rot { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.setup-logo-zona {
  display: block; width: 100%; text-align: center; font: inherit;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  padding: 18px; cursor: pointer; background: var(--surface-hover); color: var(--text-primary);
}
.setup-logo-zona:hover { border-color: var(--brand); }
.setup-logo-zona small { display: block; color: var(--text-muted); font-size: 11.5px; margin-top: 4px; }
.mini-painel { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); }
.mini-topo { background: var(--text-primary); color: #fff; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px; }
.mini-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.mini-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mini-nome { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-corpo { padding: 12px; }
.mini-linha { height: 7px; border-radius: 4px; background: var(--border); margin-bottom: 7px; }
.mini-linha.curta { width: 55%; }
.mini-card { border: 1px solid var(--border); border-radius: 8px; padding: 8px; margin-top: 10px; }
.mini-rot { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 640px) {
  .setup-marca { grid-template-columns: 1fr; }
  .setup-rodape { flex-direction: column-reverse; align-items: stretch; }
  .setup-navega { justify-content: flex-end; }
  .setup-pular { text-align: center; padding: 6px 0; }
}

/* "Refazer a configuração inicial", no cartão Perfil da agência */
.cfg-refazer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.cfg-refazer b { display: block; font-size: 13.5px; color: var(--text-primary); }
.cfg-refazer span { font-size: 12.5px; color: var(--text-secondary); }
