/* ══════════════════════════════════════════════════════════════════
   TEVA ARQUITETURA — CLIENT DASHBOARD (complemento do style.css)
   ══════════════════════════════════════════════════════════════════ */

/* ── TOPBAR PREMIUM OVERRIDES (client area) ───────────────────── */
.topbar {
  height: 64px;
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), rgba(139,196,160,0.2));
  opacity: 0.7;
}

.topbar-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
}

/* Cliente: oculta a barra branca do topo — o nome do projeto já aparece na
   faixa verde (capa). Admin mantém a barra (seletor de projeto, editar pacote). */
body:not(.is-admin) .topbar { display: none; }
@media (max-width: 768px) {
  /* No celular a barra precisa existir só pro botão de menu (hamburger) */
  body:not(.is-admin) .topbar {
    display: flex;
    justify-content: flex-start;  /* botão de menu encostado na esquerda */
    height: auto;
    min-height: 0;
    padding: 8px 12px;
    background: transparent;
    box-shadow: none;
  }
  body:not(.is-admin) .topbar::after { display: none; }
  body:not(.is-admin) .topbar-title-wrap,
  body:not(.is-admin) .topbar-actions { display: none; }
  body:not(.is-admin) .hamburger-btn { margin: 0; }
}

/* ── GLOBAL POLISH (smoother transitions, softer shadows) ──── */
.card,
.doc-item,
.folder-card,
.shopping-card,
.gallery-item {
  transition: all 0.22s ease;
}

.card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.02);
}

.card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.03);
}

/* Manual accordion hover effect */
.manual-accordion-card:hover {
  border-color: var(--accent);
  background: var(--bg-green);
}

/* ── STEPPER HERO (capa do projeto — fundo escuro Teva) ─────── */
.stepper-hero {
  background: var(--primary);
  padding: 40px 24px 32px;
  overflow-x: hidden;
  /* overflow-x:hidden faz o overflow-y virar 'auto' (regra CSS), o que num
     flex-column transforma o hero em container rolável com min-height:0 e o
     flex passa a ENCOLHER/cortar o hero. flex-shrink:0 trava isso. */
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Overlay escuro sobre a imagem de fundo */
.stepper-hero.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19,35,23,0.82);
  pointer-events: none;
}

.stepper-hero:not(.has-bg)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(139,196,160,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.stepper-hero-title {
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.stepper-hero-title h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: .02em;
  color: #fff;
}

.stepper-hero-title p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* Pacote do cliente — pill na faixa verde, abaixo do nome e acima das etapas */
.stepper-hero-pacote {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 2px 0 16px;
}
.stepper-hero-pacote:empty { display: none; }
.hero-pacote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero-pacote-pill svg { width: 13px; height: 13px; }

.stepper-admin-row {
  text-align: center;
  margin-top: 16px;
  position: relative;
  z-index: 1;
  display: none;
}

.is-admin .stepper-admin-row { display: block; }

/* Barra "visualizando como cliente" (preview do admin) */
.client-preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--accent-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.client-preview-bar svg { width: 15px; height: 15px; vertical-align: -3px; }
.client-preview-bar button {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 50px;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}
.client-preview-bar button:hover { background: rgba(255,255,255,0.3); }

.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 82px;
  flex: 0 0 auto;
  min-width: 0;
}

.stepper-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.18);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: all 0.35s;
  position: relative;
}

.stepper-circle svg.lucide,
.stepper-circle i[data-lucide] {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 1.5;
}

/* Etapa futura (default) */
.stepper-step .stepper-circle {
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.25);
}

/* Etapa concluída */
.stepper-step.completed .stepper-circle {
  border-color: var(--accent);
  background: rgba(139,196,160,0.12);
  color: var(--accent);
}

/* Etapa atual — destaque forte */
.stepper-step.active .stepper-circle {
  border-color: #fff;
  background: rgba(255,255,255,0.13);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.07), 0 0 24px rgba(139,196,160,0.2);
  transform: scale(1.08);
}

.stepper-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.22);
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 82px;
}

.stepper-step.completed .stepper-label {
  color: rgba(139,196,160,0.8);
}

.stepper-step.active .stepper-label {
  color: #fff;
}

.stepper-line {
  flex: 1 1 auto;
  min-width: 6px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-top: 29px;
}

.stepper-line.done {
  background: var(--accent);
}

/* Badge da etapa atual */
.stepper-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,196,160,0.15);
  border: 1px solid rgba(139,196,160,0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stepper-current-badge svg.lucide {
  width: 14px !important;
  height: 14px !important;
}

/* Dica "toque para ver todas as etapas" — só aparece no mobile (media query) */
.stepper-tap-hint { display: none; position: relative; z-index: 1; }

/* ── CLIENT TABS (abas internas) ───────────────────────────────── */
.client-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.client-tab {
  padding: 9px 16px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.client-tab:hover {
  color: var(--text-mid);
  background: rgba(0,0,0,0.03);
}

.client-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.client-tab svg.lucide {
  width: 14px;
  height: 14px;
}

.tab-panel {
  display: none;
  animation: tabFade 0.25s ease;
}

.tab-panel.active {
  display: block;
}

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

/* ── DOCUMENT GRID ─────────────────────────────────────────────── */
.doc-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.doc-filter-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  background: none;
  transition: all 0.15s;
  font-family: inherit;
}

.doc-filter-btn:hover {
  border-color: var(--accent);
  background: var(--bg-green);
}

.doc-filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.doc-item:hover {
  border-color: var(--accent);
  background: var(--bg-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.doc-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.doc-icon-box.pdf  { background: #fef2f2; color: #dc2626; }
.doc-icon-box.dwg  { background: #dbeafe; color: #2563eb; }
.doc-icon-box.img  { background: #fef3c7; color: #d97706; }
.doc-icon-box.doc  { background: #dbeafe; color: #1e40af; }
.doc-icon-box.xlsx { background: #d1fae5; color: #065f46; }
.doc-icon-box.default { background: var(--bg-light); color: var(--text-gray); }

.doc-info { flex: 1; min-width: 0; }
.doc-info h5 { font-size: 13px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.doc-info p  { font-size: 11px; color: var(--text-gray); margin-top: 2px; }

.doc-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 50px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.doc-badge-cli  { background: #dbeafe; color: #1e40af; }
.doc-badge-link { background: #ede9fe; color: #6d28d9; }

.doc-del-btn {
  background: transparent;
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  opacity: 0;
  flex-shrink: 0;
}
.doc-item:hover .doc-del-btn { opacity: 1; }
.doc-del-btn:hover { background: #fee2e2; color: #b91c1c; opacity: 1; }
.doc-del-btn svg { width: 14px; height: 14px; }

/* ── PREVIEW MODAL DE DOCUMENTOS ───────────────────────────────── */
.doc-preview-overlay {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}
.doc-preview-modal {
  max-width: 1080px !important;
  width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.doc-preview-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfa 0%, #fff 100%);
  flex-shrink: 0;
}
.doc-preview-modal .modal-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 0;
  flex: 1;
}
.doc-preview-modal .modal-body {
  overflow: auto;
  background: var(--bg-light);
}
.doc-preview-modal .btn-ghost {
  width: 34px; height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.doc-preview-modal .btn-ghost svg { width: 16px; height: 16px; margin: 0; }
.doc-preview-modal .modal-close {
  margin-left: 4px;
}

/* ── DOCUMENTOS OBRIGATÓRIOS (req-doc) ────────────────────────── */
.req-doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.req-doc-row:last-child { border-bottom: none; }

.req-doc-info {
  flex: 1;
  min-width: 200px;
}
.req-doc-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 5px;
}
.req-doc-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.req-doc-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.req-doc-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-green);
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  font-family: inherit;
  max-width: 260px;
  transition: all 0.15s;
}
.req-doc-file:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(95, 168, 130, 0.3);
}
.req-doc-file:hover .req-doc-eye { opacity: 1; }
.req-doc-file svg { width: 13px; height: 13px; flex-shrink: 0; }
.req-doc-file .req-doc-fname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.req-doc-file .req-doc-eye {
  opacity: 0.5;
  transition: opacity 0.15s;
}

.req-doc-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  white-space: nowrap;
  background: var(--white);
  transition: all 0.12s;
  max-width: 240px;
}
.req-doc-pick:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--bg-green);
}
.req-doc-pick svg { width: 13px; height: 13px; }

/* Botão "Adicionar Arquivo" — primary sólido, claro e óbvio */
.req-doc-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(22,35,24,0.18);
}
.req-doc-add:hover {
  background: #1f3122;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22,35,24,0.28);
}
.req-doc-add.uploading {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  cursor: progress;
}
.req-doc-add svg { width: 14px; height: 14px; }
.req-doc-add .spin { animation: req-spin 0.9s linear infinite; }

@keyframes req-spin { to { transform: rotate(360deg); } }

/* Pill indicando o dono do doc (Escritório / Cliente) */
.req-doc-owner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-left: 6px;
  vertical-align: middle;
}
.req-doc-owner svg { width: 10px; height: 10px; }
.owner-admin   { background: #ede9fe; color: #6d28d9; }
.owner-cliente { background: #dbeafe; color: #1e40af; }

/* ── DROPZONE do modal "Adicionar Arquivo" ───────────────────── */
.addoc-filebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-light);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.addoc-filebox:hover {
  border-color: var(--accent);
  background: var(--bg-green);
}
.addoc-filebox svg.lucide {
  width: 32px;
  height: 32px;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.addoc-filebox span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.addoc-filebox.has-file {
  border-style: solid;
  border-color: var(--accent);
  background: var(--bg-green);
}
.addoc-filebox.has-file svg.lucide { color: var(--accent-dark); }

/* ══════════════════════════════════════════════════════════════════
   BRIEFING — Galeria de Imagens com Comentários (Notion-like)
   ══════════════════════════════════════════════════════════════════ */
/* Conteúdo do briefing: largura confortável e centralizada, com margens laterais
   que se adaptam — PC largo mostra margens dos dois lados; iPad/tablet preenchem
   (a página já tem padding lateral); mobile ocupa tudo. */
.bf-form {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.bf-gallery-group { margin-bottom: 28px; }
.bf-gallery-q {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  line-height: 1.5;
  margin-bottom: 12px !important;
  display: block;
}

.bf-gallery-wrap {
  margin-top: 8px;
}

.bf-gal-hint {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 10px;
  padding: 6px 12px;
  background: var(--bg-light);
  border-radius: 8px;
  display: inline-block;
}
.bf-gal-hint strong { color: var(--accent-dark); font-weight: 700; }

/* Mosaico flexível — 2 cards por linha por padrão (visual Tally/mobile), mas cada
   card pode ser redimensionado (arrastando a borda) e mantém a proporção natural
   da imagem; os cards se encaixam quebrando linha. */
.bf-gal-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  max-width: 100%;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .bf-gal-card { width: 100% !important; }
}

.bf-gal-card {
  position: relative;
  width: calc(50% - 7px);  /* 2 por linha; sobrescrito inline por img.w ao redimensionar */
  max-width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bf-gal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.bf-gal-card.bf-gal-dragging { opacity: 0.4; }
.bf-gal-card.bf-gal-drop-target { box-shadow: 0 0 0 2px var(--accent-dark); }
/* Alça de redimensionar (canto inferior direito) — só admin */
.bf-gal-resize {
  position: absolute;
  right: 2px; bottom: 2px;
  width: 18px; height: 18px;
  cursor: nwse-resize;
  z-index: 4;
  background:
    linear-gradient(135deg, transparent 50%, var(--accent-dark) 50%);
  border-bottom-right-radius: 12px;
  opacity: 0.55;
  touch-action: none;
}
.bf-gal-card:hover .bf-gal-resize { opacity: 1; }
.bf-gal-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 22px;
  flex-shrink: 0;
  color: var(--text-gray);
  cursor: grab;
  border-radius: 5px;
}
.bf-gal-grip:active { cursor: grabbing; }
.bf-gal-grip:hover { background: var(--bg-light); color: var(--text-dark); }
.bf-gal-grip svg { width: 14px; height: 14px; }
.bf-gal-card.selected {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px var(--accent-dark), 0 6px 18px rgba(95,168,130,0.22);
}

/* Cabeçalho do card: letra + nome (estilo Tally) */
.bf-gal-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
}
.bf-gal-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--bg-light);
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.bf-gal-card.selected .bf-gal-letter {
  background: var(--accent-dark);
  color: #fff;
}

.bf-gal-imgbox {
  position: relative;
  width: 100%;
  background: var(--bg-light);
  overflow: hidden;
  line-height: 0;
}
.bf-gal-imgbox img {
  width: 100%;
  height: auto;          /* mantém a proporção original — sem corte/redimensionar */
  display: block;
}

.bf-gal-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.18s;
  z-index: 2;
}
.bf-gal-check svg { width: 16px; height: 16px; }
.bf-gal-card:hover .bf-gal-check { border-color: var(--accent); background: #fff; }
.bf-gal-card.selected .bf-gal-check {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(95,168,130,0.4);
}

.bf-gal-label {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bf-gal-card.selected .bf-gal-label { color: var(--accent-dark); font-weight: 700; }

/* Controles do admin no CABEÇALHO do card (sempre visíveis, fora da imagem) */
.bf-gal-admin {
  display: inline-flex;
  margin-left: auto;
  gap: 2px;
  flex-shrink: 0;
  z-index: 3;
}
.bf-gal-admin button {
  background: var(--bg-light);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.bf-gal-admin button:hover { background: var(--bg-green); color: var(--accent-dark); }
.bf-gal-admin button.del:hover { background: #fee2e2; color: #b91c1c; }
.bf-gal-admin svg { width: 13px; height: 13px; }

.bf-gal-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  break-inside: avoid;
  margin: 0 0 16px;
  min-height: 130px;
  padding: 24px 16px;
  border: 2px dashed var(--border);
  background: var(--bg-light);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text-gray);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}
.bf-gal-add:hover {
  border-color: var(--accent);
  background: var(--bg-green);
  color: var(--accent-dark);
  border-style: solid;
}
.bf-gal-add svg { width: 22px; height: 22px; }
.bf-gal-add-empty {
  aspect-ratio: auto;
  padding: 28px 20px;
  width: 100%;
  max-width: 380px;
  margin: 6px auto;
  border-radius: 10px;
}
.bf-gal-add-empty span {
  font-size: 13px;
}
.bf-gal-add-empty small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-gray);
  text-align: center;
  line-height: 1.4;
}
.bf-gal-add-empty svg.lucide { width: 24px; height: 24px; }

.bf-gal-empty {
  max-width: 380px;
  margin: 6px auto;
  padding: 28px 20px;
}

/* Drag&drop overlay visual quando arrasta imagens sobre a galeria */
.bf-gallery-wrap { position: relative; border-radius: 12px; transition: background 0.15s; }
.bf-gal-dropover-msg {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(234, 243, 236, 0.92);
  border: 3px dashed var(--accent-dark);
  border-radius: 12px;
  z-index: 20;
  pointer-events: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
}
.bf-gal-dropover-msg svg { width: 38px; height: 38px; }
.bf-gallery-wrap.bf-gal-dragover .bf-gal-dropover-msg { display: flex; }

/* Barra de progresso do upload em lote */
.bf-gal-upload-progress {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.bf-gup-bar {
  height: 6px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 6px;
}
.bf-gup-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.3s;
}
.bf-gup-text {
  font-size: 11.5px;
  color: var(--text-mid);
  font-weight: 500;
}

.bf-gal-empty {
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-light);
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  color: var(--text-gray);
}
.bf-gal-empty svg { width: 36px; height: 36px; color: var(--border); margin-bottom: 10px; }
.bf-gal-empty p { margin: 0; font-size: 13px; }

/* Comentário inline embaixo da galeria */
.bf-gal-comment {
  margin-top: 18px;
  background: linear-gradient(180deg, #fafbfa 0%, #fff 100%);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.bf-gal-comment-lbl {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bf-gal-comment textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  outline: none;
  resize: vertical;
  color: var(--text-dark);
  transition: border-color 0.15s;
  min-height: 90px;
}
.bf-gal-comment textarea::placeholder {
  color: var(--text-gray);
  font-size: 12.5px;
  line-height: 1.6;
}
.bf-gal-comment textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,196,160,0.18);
}

/* ══════════════════════════════════════════════════════════════════
   BRIEFING — Tipos de Field (Notion-like)
   ══════════════════════════════════════════════════════════════════ */
.bf-field { position: relative; }
.bf-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 12px !important;
}

/* Toolbar admin estilo Notion — 3 ícones à esquerda do field.
   Layout FIXO: sempre tem espaço reservado pros botões (nunca desloca
   o conteúdo). Só a opacidade muda no hover. */
/* Conteúdo ocupa a coluna inteira (centralizada); os botões de edição ficam
   FORA da coluna, na margem esquerda — assim a prévia fica igual à do cliente. */
.is-admin .bf-field { position: relative; padding-left: 0; }
/* Cliente (não-admin) NÃO precisa do espaço — sem botões */
body:not(.is-admin) .bf-field { padding-left: 0; }

.bf-fld-tools {
  position: absolute;
  top: 6px;
  left: 0;
  display: flex;
  gap: 1px;
  opacity: 0.38;           /* sempre visível (discreto) — não some ao mirar nos botões */
  transition: opacity 0.15s;
  pointer-events: auto;    /* sempre clicável — sem "vão morto" na margem */
  z-index: 4;
}
/* Joga a toolbar pra margem esquerda (fora da coluna de 820px) */
.is-admin .bf-fld-tools { left: -118px; }
/* Sem margem lateral suficiente pra coluna + botões — volta pra dentro */
@media (max-width: 1300px) {
  .is-admin .bf-field { padding-left: 116px; }
  .is-admin .bf-fld-tools { left: 0; }
}
.bf-field:hover .bf-fld-tools,
.bf-field.bf-editing .bf-fld-tools,
.bf-fld-tools:hover {
  opacity: 1;
}

.bf-fld-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-gray);
  transition: all 0.12s;
}
.bf-fld-tool:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}
.bf-fld-tool.danger:hover { color: #b91c1c; background: #fee2e2; }
.bf-fld-tool.active { background: var(--accent-dark); color: #fff; }
.bf-fld-tool svg { width: 14px; height: 14px; }

/* Drag & drop visual */
.bf-field.bf-dragging {
  opacity: 0.4;
  transform: scale(0.98);
}
.bf-field.bf-drop-above {
  position: relative;
  box-shadow: 0 -3px 0 0 var(--accent-dark);
}
.bf-field.bf-drop-below {
  position: relative;
  box-shadow: 0 3px 0 0 var(--accent-dark);
}

/* ── BLOCOS DISPLAY-ONLY (Heading 1, 2, Paragraph, Divider) ──── */
.bf-block-wrap { padding-bottom: 4px; }

.bf-block {
  margin: 0;
  color: var(--text-dark);
  outline: none;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background 0.12s;
}
.bf-block[contenteditable="true"]:hover { background: var(--bg-light); }
.bf-block[contenteditable="true"]:focus { background: var(--bg-light); box-shadow: 0 0 0 1.5px var(--accent); }
.bf-block[contenteditable="true"]:empty::before {
  content: attr(placeholder);
  color: var(--text-gray);
  opacity: 0.5;
}

.bf-block-heading1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--accent-dark);
}
.bf-block-heading2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 10px;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.bf-block-paragraph {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-mid);
}

.bf-block-divider-wrap { padding: 4px 0 4px 96px; }
body:not(.is-admin) .bf-block-divider-wrap { padding-left: 0; }
.bf-block-divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 14px 0;
}

/* ── PAINEL DE SEÇÕES / TEMPLATES (topo do briefing, admin) ──── */
.bf-sections-panel {
  background: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(95,168,130,0.08);
}
.bf-sp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.bf-sp-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.bf-sp-title > svg.lucide {
  width: 20px; height: 20px;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.bf-sp-title > span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.bf-sp-title > small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-gray);
  margin-left: 4px;
}
.bf-sp-header .btn { flex-shrink: 0; font-size: 12px; }
.bf-sp-header .btn svg { width: 13px; height: 13px; }

.bf-sp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

/* ── Agrupamento por CATEGORIA (residencial, comercial, interiores…) ── */
.bf-sp-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}
.bf-cat-group .bf-sp-pills { margin-bottom: 0; }
.bf-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.bf-cat-name {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  cursor: pointer;
}
.bf-cat-head-none .bf-cat-name { color: var(--text-gray); cursor: default; }
.bf-cat-empty { font-size: 11.5px; color: var(--text-gray); font-style: italic; padding: 4px 2px; }

/* ── Pacote do cliente (badge abaixo do nome, no topbar) ───────── */
.topbar-title-wrap { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.topbar-pacote {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--bg-green);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 2px 10px;
  line-height: 1.4;
}
.topbar-pacote:empty { display: none; }
.is-admin .topbar-pacote { cursor: pointer; }
.is-admin .topbar-pacote:hover { background: var(--accent); color: #fff; }
.topbar-pacote svg { width: 11px; height: 11px; }
.bf-pac-edit { margin-left: auto; display: inline-flex; align-items: center; opacity: 0.45; padding: 2px; border-radius: 5px; }
.bf-pac-edit svg { width: 13px !important; height: 13px !important; color: var(--text-gray); }
.bf-cat-menu-item:hover .bf-pac-edit { opacity: 1; }
.bf-pac-edit:hover { background: var(--bg-light); }
.bf-cat-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: #fff8e6;
  border: 1px solid #f3d98a;
  border-radius: 10px;
}
.bf-cat-savebar > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a6d1a;
}
.bf-cat-savebar > span svg { width: 15px; height: 15px; }
.bf-cat-group {
  border-radius: 10px;
  transition: background 0.12s, box-shadow 0.12s;
}
.bf-cat-group.bf-cat-over {
  background: var(--bg-green);
  box-shadow: inset 0 0 0 2px var(--accent);
  padding: 8px;
  margin: -8px;
}
.bf-cat-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-gray);
  background: var(--bg-light);
  border-radius: 50px;
  padding: 1px 7px;
}
.bf-cat-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: none; background: none; cursor: pointer;
  color: var(--text-gray);
  border-radius: 6px;
  opacity: 0;
  transition: all 0.12s;
}
.bf-cat-del svg { width: 13px; height: 13px; }
.bf-cat-head:hover .bf-cat-del { opacity: 0.6; }
.bf-cat-del:hover { opacity: 1; background: #fee2e2; color: #b91c1c; }

/* Botão "mover pra categoria" (pasta) dentro de cada chip */
.bf-sp-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  margin-left: 2px;
  opacity: 0.45;
  transition: all 0.12s;
  cursor: pointer;
}
.bf-sp-cat-btn svg { width: 12px; height: 12px; }
.bf-sp-pill:hover .bf-sp-cat-btn { opacity: 0.9; }
.bf-sp-cat-btn:hover { background: var(--bg-green); color: var(--accent-dark); opacity: 1; }
.bf-sp-pill.active .bf-sp-cat-btn { color: #fff; opacity: 0.8; }
.bf-sp-pill.active .bf-sp-cat-btn:hover { background: rgba(255,255,255,0.25); opacity: 1; }

/* Botão ⋮ (único controle do chip — abre o menu de opções) */
.bf-sp-menu-btn { opacity: 0.7; }
.bf-sp-menu-btn svg { width: 15px; height: 15px; }
/* Limita a largura do nome pra o chip não ficar enorme */
.bf-sp-name {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Menu flutuante de categorias (sem preview, escolha direta) */
.bf-cat-menu {
  position: fixed;
  z-index: 99999;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  padding: 5px;
}
.bf-cat-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-dark);
  border-radius: 7px;
  text-align: left;
}
.bf-cat-menu-item:hover { background: var(--bg-light); }
.bf-cat-menu-item svg { width: 15px; height: 15px; color: var(--accent-dark); }
.bf-cat-menu-item.is-current { color: var(--accent-dark); font-weight: 600; }
.bf-cat-menu-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  margin: 0 3px;
}
.bf-cat-menu-new {
  border-top: 1px solid var(--border);
  margin-top: 4px; padding-top: 11px;
  color: var(--text-gray);
}
/* Opção destrutiva (Excluir) no menu ⋮ do chip */
.bf-cat-menu-danger { color: #b91c1c; }
.bf-cat-menu-danger svg { color: #b91c1c; }
.bf-cat-menu-danger:hover { background: #fee2e2; }

.bf-sp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.bf-sp-pill:hover {
  border-color: var(--accent);
  background: var(--bg-green);
  color: var(--accent-dark);
}
.bf-sp-pill.active {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
  box-shadow: 0 2px 6px rgba(95,168,130,0.25);
}
.bf-sp-check {
  width: 13px !important; height: 13px !important;
  color: #fff;
}
.bf-sp-pill-custom {
  border-style: dashed;
}
.bf-sp-pill-custom.active { border-style: solid; }
.bf-sp-custom-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 50px;
  background: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bf-sp-pill-custom:not(.active) .bf-sp-custom-tag {
  background: var(--bg-green);
  color: var(--accent-dark);
}

/* Pills de TEMPLATES salvos (cor azul-acinzentado pra distinguir) */
.bf-sp-pill-template {
  font-family: inherit;
  border-style: solid;
  border-color: #c7d2e0;
  background: #f4f7fb;
  color: #475569;
}
.bf-sp-pill-template:hover {
  border-color: #94a3b8;
  background: #e2e8f0;
  color: #1e293b;
}
.bf-sp-pill-template.active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  cursor: default;
}
.bf-sp-pill-template .bf-sp-bookmark {
  width: 12px; height: 12px;
  color: #64748b;
}
.bf-sp-tpl-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-left: 2px;
  opacity: 0.5;
  transition: all 0.12s;
}
.bf-sp-tpl-del svg { width: 11px; height: 11px; }
.bf-sp-pill-template:hover .bf-sp-tpl-del { opacity: 1; }
.bf-sp-tpl-del:hover { background: #fee2e2; color: #b91c1c; opacity: 1; }
/* Lista unificada: X de excluir disponível em QUALQUER chip (inclusive ativos) */
.bf-sp-pill .bf-sp-tpl-del { opacity: 0.45; }
.bf-sp-pill:hover .bf-sp-tpl-del { opacity: 1; }
.bf-sp-pill.active .bf-sp-tpl-del { color: #fff; opacity: 0.8; }
.bf-sp-pill.active .bf-sp-tpl-del:hover { background: rgba(255,255,255,0.25); color: #fff; opacity: 1; }
.bf-sp-bookmark { width: 12px; height: 12px; color: var(--text-gray); }
.bf-sp-pill.active .bf-sp-bookmark { color: #fff; }

.bf-sp-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.bf-sp-footer .btn { font-size: 12px; }
.bf-sp-footer svg { width: 13px; height: 13px; }

/* ── HEADER DE SEÇÃO do briefing com botões de template ──────── */
.bf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.bf-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.bf-section-title svg.lucide {
  width: 22px;
  height: 22px;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.bf-section-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}
.bf-section-tpl-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bf-section-tpl-actions .btn { font-size: 12px; padding: 6px 12px; }
.bf-section-tpl-actions svg { width: 13px; height: 13px; }

/* ── BARRA DE TEMPLATES no topo do briefing (admin only) ──────── */
.bf-template-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--bg-green) 0%, #fafbfa 100%);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.bf-tb-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
}
.bf-tb-info svg { width: 16px; height: 16px; }
.bf-tb-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bf-tb-actions .btn { font-size: 12px; padding: 6px 12px; }
.bf-tb-actions svg { width: 13px; height: 13px; }

/* Lista de templates no modal */
.bf-tpl-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: all 0.12s;
}
.bf-tpl-item:hover {
  border-color: var(--accent);
  background: var(--bg-green);
}
.bf-tpl-info { flex: 1; min-width: 0; }
.bf-tpl-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.bf-tpl-desc {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.4;
  margin-bottom: 4px;
}
.bf-tpl-meta {
  font-size: 11px;
  color: var(--text-gray);
}
.bf-tpl-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.bf-tpl-actions .btn { font-size: 11.5px; padding: 6px 10px; }
.bf-tpl-actions svg { width: 12px; height: 12px; }

/* Editor inline (sem modal) */
.bf-editing {
  background: linear-gradient(180deg, #fafbfa 0%, #ffffff 100%);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
  box-shadow: 0 4px 14px rgba(95,168,130,0.12);
}
/* O conteúdo da caixa ocupa a largura toda; os botões ficam FORA, na margem
   esquerda — igual ao modo normal (não mais empilhados sobre o título). */
.is-admin .bf-field.bf-editing { padding-left: 20px; }
.bf-editing .bf-fld-tools { top: 14px; left: -118px; opacity: 1; pointer-events: auto; }
/* Telas estreitas (sem margem lateral): botões voltam pra dentro da caixa */
@media (max-width: 1300px) {
  .is-admin .bf-field.bf-editing { padding-left: 92px; }
  .bf-editing .bf-fld-tools { left: 12px; }
}

.bf-inline-editor { margin-bottom: 14px; }
.bf-ie-row { margin-bottom: 10px; }
.bf-ie-row:last-child { margin-bottom: 0; }
.bf-ie-cols {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .bf-ie-cols { grid-template-columns: 1fr; }
}

.bf-ie-label-input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  outline: none;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.12s, background 0.12s;
}
.bf-ie-label-input:focus { border-color: var(--accent); background: var(--white); }
.bf-ie-label-input:hover { background: var(--bg-light); }

.bf-ie-help-input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 12px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  outline: none;
  background: var(--white);
  color: var(--text-mid);
  transition: border-color 0.12s, background 0.12s;
}
.bf-ie-help-input:focus { border-color: var(--accent); }
.bf-ie-help-input:hover { background: var(--bg-light); }

.bf-ie-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bf-ie-mini > span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-gray);
}
.bf-ie-mini input,
.bf-ie-mini select,
.bf-ie-mini textarea {
  width: 100%;
  font-family: inherit;
  font-size: 12.5px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  outline: none;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.12s;
}
.bf-ie-mini input:focus,
.bf-ie-mini select:focus,
.bf-ie-mini textarea:focus { border-color: var(--accent); }
.bf-ie-mini textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.bf-ie-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.bf-ie-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  border: none;
  transition: all 0.12s;
}
.bf-ie-btn svg { width: 13px; height: 13px; }
.bf-ie-restore {
  background: transparent;
  color: var(--text-gray);
  border: 1.5px solid var(--border);
}
.bf-ie-restore:hover { background: var(--bg-light); color: var(--text-dark); }
.bf-ie-done {
  background: var(--accent-dark);
  color: #fff;
}
.bf-ie-done:hover { background: var(--primary); transform: translateY(-1px); }

/* Preview ao vivo do field em edição */
.bf-field-preview {
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px dashed var(--border);
  position: relative;
}
.bf-preview-tag {
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-dark);
  color: #fff;
  padding: 2px 8px;
  border-radius: 50px;
}

/* ── Opções inline estilo Notion (checkbox + input editável) ──── */
.bf-ie-opts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.bf-ie-opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.1s;
}
.bf-ie-opt-row:hover { background: var(--bg-light); }

.bf-ie-opt-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 14px;
  color: var(--text-gray);
  flex-shrink: 0;
  font-weight: 400;
}
/* Pra checkbox (☐) deixar quadrado borda */
.bf-ie-opt-marker {
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 0; /* esconde o caractere unicode */
}
.bf-ie-opt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  min-width: 0;
}
.bf-ie-opt-input:focus { background: transparent; }
.bf-ie-opt-input::placeholder { color: var(--text-gray); opacity: 0.6; }

.bf-ie-opt-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-gray);
  opacity: 0;
  transition: all 0.12s;
  flex-shrink: 0;
}
.bf-ie-opt-row:hover .bf-ie-opt-del { opacity: 1; }
.bf-ie-opt-del:hover { background: #fee2e2; color: #b91c1c; }
.bf-ie-opt-del svg { width: 13px; height: 13px; }

.bf-ie-opt-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-gray);
  transition: all 0.12s;
  width: 100%;
  justify-content: center;
}
.bf-ie-opt-add:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--bg-green);
  border-style: solid;
}
.bf-ie-opt-add svg { width: 14px; height: 14px; }

/* ── "Adicionar pergunta" no fim de cada seção (admin) ────────── */
.bf-add-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 8px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.18s;
}
.bf-add-field-row:hover { opacity: 1; }

.bf-add-field-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  transition: background 0.18s;
}
.bf-add-field-row:hover .bf-add-field-line { background: var(--accent); }

.bf-add-field-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
  white-space: nowrap;
}
.bf-add-field-row:hover .bf-add-field-btn {
  border-color: var(--accent);
  background: var(--bg-green);
  color: var(--accent-dark);
  border-style: solid;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(95,168,130,0.18);
}
.bf-add-field-btn svg { width: 15px; height: 15px; }

/* Descrição auxiliar abaixo da pergunta */
.bf-help {
  font-size: 12.5px;
  color: var(--text-gray);
  margin: -4px 0 10px;
  line-height: 1.5;
}

/* Estado vazio em multipla escolha / checkboxes / dropdown */
.bf-empty-opts {
  padding: 12px 14px;
  background: var(--bg-light);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-gray);
  font-style: italic;
}

/* Múltipla escolha (radio) */
/* Múltipla escolha / Caixas de seleção — estilo minimalista (sem "cartão"):
   só o controle + o texto, lista limpa e com bom espaçamento. */
.bf-radio-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bf-radio {
  display: flex !important;   /* vence .form-group label{display:block} do style.css */
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.bf-radio:hover { background: var(--bg-light); }
.bf-radio input[type=radio] { display: none; }
.bf-radio-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5d3;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
.bf-radio:hover .bf-radio-dot { border-color: var(--accent); }
.bf-radio.selected .bf-radio-dot {
  border-color: var(--accent-dark);
  background: var(--white);
}
.bf-radio.selected .bf-radio-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--accent-dark);
  border-radius: 50%;
}
.bf-radio-lbl {
  font-size: 14.5px;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.4;
}

/* Checkboxes (multi) */
.bf-check-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bf-check {
  display: flex !important;   /* vence .form-group label{display:block} do style.css */
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.bf-check:hover { background: var(--bg-light); }
.bf-check input[type=checkbox] { display: none; }
.bf-check-box {
  width: 21px; height: 21px;
  border-radius: 6px;
  border: 2px solid #cbd5d3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--white);
  transition: all 0.15s;
}
.bf-check-box svg { width: 13px; height: 13px; }
.bf-check:hover .bf-check-box { border-color: var(--accent); }
.bf-check.selected .bf-check-box {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.bf-check-lbl {
  font-size: 14.5px;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.4;
}
/* Última linha digitável ("Outro") embaixo das caixas de seleção */
.bf-check-outro-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 6px;
}
.bf-check-outro-box { color: var(--text-gray); background: var(--bg-light); }
.bf-check-outro-box svg { width: 13px; height: 13px; }
.bf-check-list .bf-check-outro {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 6px 2px;
  margin: 0;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
}
.bf-check-list .bf-check-outro:focus { border-bottom-color: var(--accent); }
.bf-check-list .bf-check-outro::placeholder { color: var(--text-gray); opacity: 0.7; }

/* Asterisco de pergunta obrigatória */
.bf-req { color: #dc2626; font-weight: 700; margin-left: 2px; }
/* Toggle "Pergunta obrigatória" no editor inline */
.bf-ie-required { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--text-mid); font-weight: 500; }
.bf-ie-required input { display: none; }
.bf-ie-req-box {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid #cbd5d3; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: transparent; transition: all 0.15s;
}
.bf-ie-req-box svg { width: 13px; height: 13px; }
.bf-ie-required input:checked + .bf-ie-req-box { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.bf-ie-required small { color: var(--text-gray); font-weight: 400; }

/* Dropdown nativo, estilizado */
.bf-select {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  cursor: pointer;
  color: var(--text-dark);
  transition: border-color 0.15s;
}
.bf-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,196,160,0.18);
}

/* File upload field */
.bf-file-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  font-family: inherit;
  transition: all 0.15s;
}
.bf-file-pick:hover {
  border-color: var(--accent);
  background: var(--bg-green);
  color: var(--accent-dark);
  border-style: solid;
}
.bf-file-pick svg { width: 14px; height: 14px; }

.bf-file-uploaded {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-green);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
}
.bf-file-uploaded a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bf-file-uploaded a:hover { text-decoration: underline; }
.bf-file-uploaded svg { width: 14px; height: 14px; }
.bf-file-uploaded .del {
  background: transparent;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  border-radius: 50%;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
}
.bf-file-uploaded .del:hover { background: #fee2e2; color: #b91c1c; }

/* ── DOCS MENU BAR (pills + botão pequeno "Adicionar Arquivo") ── */
.docs-menu-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.docs-add-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
}
.docs-add-btn svg { width: 14px; height: 14px; }

@media (max-width: 700px) {
  .docs-menu-bar { gap: 8px; }
  .docs-add-btn { width: 100%; justify-content: center; }
}

.req-doc-send {
  font-size: 11.5px;
  white-space: nowrap;
}
.req-doc-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.req-doc-send svg { width: 13px; height: 13px; }

/* Botão "Visualizar" — verde escuro, ao lado do nome do arquivo */
.req-doc-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent-dark);
  color: #fff;
  border: 1.5px solid var(--accent-dark);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.req-doc-view:hover {
  background: #4d8a6a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(95, 168, 130, 0.35);
}
.req-doc-view svg { width: 13px; height: 13px; }

/* Botão lixeira pra excluir e reenviar */
.req-doc-del {
  background: transparent;
  border: 1.5px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  flex-shrink: 0;
}
.req-doc-del:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.req-doc-del svg { width: 14px; height: 14px; }

/* ── FOLDER EXPLORER ───────────────────────────────────────────── */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.folder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.folder-card:hover {
  border-color: var(--accent);
  background: var(--bg-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.folder-card .folder-ico {
  width: 48px;
  height: 48px;
  background: var(--bg-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-card .folder-ico svg.lucide { width: 24px; height: 24px; color: var(--accent-dark); }

.folder-card h4 { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.folder-card p { font-size: 11px; color: var(--text-gray); }

.folder-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 14px;
  font-family: inherit;
}

.folder-back:hover { text-decoration: underline; }

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: background 0.12s;
}

.file-row:hover { background: var(--bg-light); }
.file-row .file-info { flex: 1; }
.file-row .file-info h5 { font-size: 13px; font-weight: 600; }
.file-row .file-info p { font-size: 11px; color: var(--text-gray); margin-top: 2px; }

/* ── SHOPPING CARDS ────────────────────────────────────────────── */
.shopping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.shopping-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.18s;
}

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

.shopping-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--bg-light);
  display: block;
}

.shopping-card-body { padding: 16px; }
.shopping-card-body h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.shopping-card-body .shop-desc { font-size: 12px; color: var(--text-gray); line-height: 1.5; margin-bottom: 10px; }

.shopping-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.shop-status.approved { background: #d1fae5; color: #065f46; }
.shop-status.pending  { background: #fef3c7; color: #92400e; }
.shop-status.rejected { background: #fef2f2; color: #dc2626; }

.shop-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shop-link:hover { text-decoration: underline; }

/* ── GALLERY ───────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 20px 14px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── LIGHTBOX ──────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── EVF STATS (client view) ───────────────────────────────────── */
.evf-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.evf-stat-card .evf-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.evf-stat-card .evf-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
}

.evf-stat-card .evf-sub {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 3px;
}

/* ── BRIEFING AUTOSAVE INDICATOR ───────────────────────────────── */
.briefing-saved-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.briefing-saved-indicator.show { opacity: 1; }

/* ── CANVA EMBED ───────────────────────────────────────────────── */
.canva-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f9fafb;
}

/* Botão "Ver em tela cheia" central — só no mobile, sobre o embed */
.canva-fs-center { display: none; }

/* Overlay de tela cheia do Canva */
.canva-fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.canva-fs-overlay iframe { width: 100%; height: 100%; border: 0; display: block; }
.canva-fs-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.canva-fs-close:hover { background: rgba(255,255,255,0.3); }
.canva-fs-close svg { width: 22px; height: 22px; }

.canva-wrapper iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

/* ── CANVA — REVISÕES (Apresentações) ─────────────────────────── */
.canva-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.canva-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfa 0%, #ffffff 100%);
}
.canva-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.canva-card-title .lucide {
  width: 18px; height: 18px;
  color: var(--accent-dark);
}
.canva-card-title small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-gray);
  margin-left: 6px;
}
.canva-rev-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.canva-rev-tabs::-webkit-scrollbar { height: 6px; }
.canva-rev-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.canva-rev-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-mid);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  position: relative;
}
.canva-rev-tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--bg-green);
}
.canva-rev-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(74,124,89,0.25);
}
.canva-rev-tab.active small { color: rgba(255,255,255,0.85); }
.canva-rev-tab small {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-gray);
  letter-spacing: 0.02em;
}
.canva-rev-tab .rev-actions {
  display: none;
  margin-left: 4px;
  gap: 2px;
}
.canva-rev-tab:hover .rev-actions { display: inline-flex; }
.canva-rev-tab .rev-actions button {
  background: rgba(255,255,255,0.85);
  border: none;
  color: var(--text-mid);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.12s;
}
.canva-rev-tab .rev-actions button:hover {
  background: #fff;
  color: var(--accent-dark);
}
.canva-rev-tab .rev-actions button.del:hover { color: #b91c1c; }
.canva-rev-tab .rev-actions svg { width: 11px; height: 11px; }
.canva-rev-tab.add {
  background: transparent;
  border: 1.5px dashed var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
}
.canva-rev-tab.add:hover {
  background: var(--bg-green);
  border-style: solid;
}
.canva-rev-tab.add svg { width: 14px; height: 14px; }

.canva-stage {
  padding: 16px 20px 20px;
}
.canva-empty-state {
  padding: 60px 24px;
  text-align: center;
  background: var(--bg-light);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  margin: 8px 0 0;
}
.canva-empty-state .lucide { width: 40px; height: 40px; color: var(--text-gray); margin-bottom: 12px; }
.canva-empty-state h3 { font-size: 15px; margin: 0 0 6px; color: var(--text-dark); }
.canva-empty-state p { font-size: 13px; color: var(--text-gray); margin: 0 0 16px; }

.canva-rev-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-gray);
  padding: 0 2px;
}
.canva-rev-meta a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.canva-rev-meta a:hover { text-decoration: underline; }
.canva-rev-meta a svg { width: 12px; height: 12px; }

/* Modal pra adicionar/editar revisão */
.canva-modal-body .form-group { margin-bottom: 14px; }
.canva-modal-body label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  display: block;
  margin-bottom: 6px;
}
.canva-modal-body input,
.canva-modal-body textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  outline: none;
  transition: border-color 0.12s;
}
.canva-modal-body input:focus,
.canva-modal-body textarea:focus { border-color: var(--accent); }
.canva-modal-body textarea { min-height: 90px; resize: vertical; }
.canva-modal-body .form-hint {
  font-size: 11.5px;
  color: var(--text-gray);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── AGENDA DE REUNIÕES ───────────────────────────────────────── */
.agenda-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.agenda-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfa 0%, #ffffff 100%);
}
.agenda-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.agenda-card-title .lucide {
  width: 18px; height: 18px;
  color: var(--accent-dark);
}
.agenda-card-title small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-gray);
  margin-left: 6px;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.agenda-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light, #f1f5f4);
  transition: background 0.12s;
}
.agenda-item:first-child { border-top: none; }
.agenda-item:hover { background: #fbfcfb; }

.agenda-date-box {
  text-align: center;
  background: var(--bg-green);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 8px 4px;
  line-height: 1;
}
.agenda-date-box .ad-dia {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-dark);
  display: block;
}
.agenda-date-box .ad-mes {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
}
.agenda-item.past .agenda-date-box {
  background: #f3f4f6;
  border-color: var(--border);
}
.agenda-item.past .agenda-date-box .ad-dia,
.agenda-item.past .agenda-date-box .ad-mes { color: var(--text-gray); }
.agenda-item.past .agenda-titulo { color: var(--text-gray); }

.agenda-info { min-width: 0; }
.agenda-etapa-pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 50px;
  margin-bottom: 4px;
}
.agenda-etapa-pill.ep   { background: #e0e7ff; color: #3730a3; }
.agenda-etapa-pill.pe   { background: #dbeafe; color: #1e40af; }
.agenda-etapa-pill.lev  { background: #fef3c7; color: #92400e; }
.agenda-etapa-pill.ap   { background: #ede9fe; color: #5b21b6; }
.agenda-etapa-pill.go   { background: #ffedd5; color: #9a3412; }
.agenda-etapa-pill.al   { background: #d1fae5; color: #065f46; }
.agenda-etapa-pill.def  { background: #f3f4f6; color: #4b5563; }

.agenda-titulo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agenda-meta {
  font-size: 12px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.agenda-meta .lucide { width: 12px; height: 12px; }
.agenda-meta .dot { color: var(--border); }

.agenda-actions { display: flex; gap: 4px; }
.agenda-actions button {
  background: transparent;
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.agenda-actions button:hover { background: var(--bg-green); color: var(--accent-dark); }
.agenda-actions button.del:hover { background: #fee2e2; color: #b91c1c; }
.agenda-actions svg { width: 14px; height: 14px; }

.agenda-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-gray);
}
.agenda-empty .lucide { width: 36px; height: 36px; color: var(--border); margin-bottom: 10px; }
.agenda-empty h3 { font-size: 14px; font-weight: 600; color: var(--text-mid); margin: 0 0 4px; }
.agenda-empty p { font-size: 12.5px; margin: 0; }

/* ── SUB-MENU da aba Projeto (Imagens / Execs / EVF) ──────────── */
.proj-subtabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-light);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.proj-subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-gray);
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  flex: 1;
  justify-content: center;
  min-width: max-content;
}
.proj-subtab:hover {
  color: var(--accent-dark);
  background: rgba(255,255,255,0.6);
}
.proj-subtab.active {
  background: var(--white);
  color: var(--accent-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.proj-subtab svg.lucide {
  width: 16px;
  height: 16px;
}
.proj-subtab.active svg.lucide { color: var(--accent); }

.proj-subpanel { display: none; }
.proj-subpanel.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .proj-subtab { font-size: 12px; padding: 9px 12px; }
  .proj-subtab svg.lucide { width: 14px; height: 14px; }
}

/* ── ADMIN-ONLY SECTION INSIDE CLIENT DASH ─────────────────────── */
.admin-panel {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 16px;
  display: none;
}

.is-admin .admin-panel { display: block; }

.admin-panel h4 {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.admin-panel .ap-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
}

.admin-panel input,
.admin-panel select {
  padding: 7px 11px;
  border: 1.5px solid #fde68a;
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  outline: none;
}

.admin-panel input:focus,
.admin-panel select:focus {
  border-color: #f59e0b;
}

/* ── PROGRESS BAR ──────────────────────────────────────────────── */
.evf-progress-bar {
  height: 7px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.evf-progress-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent-dark), var(--primary-mid));
  transition: width 0.5s ease;
}

/* ── LOGIN PAGE ────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-light);
}

.login-page * { box-sizing: border-box; margin: 0; padding: 0; }

.login-left {
  flex: 1;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(139,196,160,0.1) 0%, transparent 60%);
}

.login-left-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 360px;
}

.login-left-inner img {
  width: 150px;
  margin-bottom: 30px;
}

.login-left-inner h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 300;
  color: #fff;
  line-height: 1.25;
  letter-spacing: .01em;
  margin-bottom: 12px;
}

.login-left-inner p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.login-box {
  width: 100%;
  max-width: 360px;
}

/* Logo minimalista (marca TEVA) — só aparece no mobile, onde o painel esquerdo some */
.login-mobile-logo { display: none; }

.login-box h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.login-box .login-sub {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 28px;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 7px;
}

.login-field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.login-field input:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(95,168,130,0.15);
}

.login-btn-main {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  margin-top: 8px;
}

.login-btn-main:hover {
  background: var(--primary-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(19,35,24,0.25);
}

.login-error-msg {
  background: #fef2f2;
  color: #dc2626;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

/* ── RESPONSIVE — iPad / Tablet (1280px) ──────────────────────── */
/* iPad mantém sidebar fixa — conteudo se ajusta */
@media (max-width: 1280px) {
  /* Stepper: fit dentro da tela sem scroll */
  .stepper-hero {
    padding: 24px 12px 20px;
    overflow-x: hidden;
  }

  .stepper {
    padding: 0 4px;
  }

  .stepper-step { width: 58px; gap: 8px; }
  .stepper-circle { width: 42px; height: 42px; border-width: 2px; }
  .stepper-circle svg.lucide, .stepper-circle i[data-lucide] { width: 18px !important; height: 18px !important; }
  .stepper-line { min-width: 4px; margin-top: 21px; height: 2px; }
  .stepper-label { font-size: 7.5px; max-width: 58px; line-height: 1.15; letter-spacing: 0.02em; }
  .stepper-hero-title h2 { font-size: 16px; }
  .stepper-hero-title p { font-size: 11px; }
  .stepper-current-badge { font-size: 11px; padding: 5px 14px; margin-top: 14px; }
  .stepper-step.active .stepper-circle { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(255,255,255,0.06), 0 0 18px rgba(139,196,160,0.18); }

  /* Tabs: scroll horizontal */
  .client-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .client-tab {
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 7px 12px;
  }

  .doc-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .shopping-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .canva-wrapper iframe {
    height: 380px;
  }

  .lightbox-overlay {
    padding: 16px;
  }

  .admin-panel .ap-row {
    flex-direction: column;
  }

  .admin-panel input, .admin-panel select {
    width: 100%;
  }

  .evf-stat-card .evf-value {
    font-size: 20px;
  }
}

/* ── RESPONSIVE — Tablet / Large Phone (768px) ────────────────── */
@media (max-width: 768px) {
  .login-left { display: none; }
  .login-right { padding: 32px 24px; }
  .login-mobile-logo { display: block; text-align: left; margin-bottom: 26px; color: var(--primary); }
  .login-mobile-logo svg { width: 88px; height: auto; }

  .stepper-hero { padding: 28px 8px 24px; }
  .stepper-step { width: 50px; }
  .stepper-circle { width: 36px; height: 36px; }
  .stepper-circle svg.lucide, .stepper-circle i[data-lucide] { width: 15px !important; height: 15px !important; }
  .stepper-line { min-width: 3px; margin-top: 18px; }
  .stepper-label { font-size: 7px; max-width: 50px; line-height: 1.15; }
  .stepper-current-badge { font-size: 11px; padding: 5px 12px; }
  .stepper-hero-title h2 { font-size: 17px; }
  .stepper-hero-title p { font-size: 11px; }

  /* Client tabs: horizontal scroll */
  .client-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 3px;
    margin-bottom: 16px;
  }

  .client-tab {
    padding: 8px 12px;
    font-size: 11.5px;
    flex-shrink: 0;
  }

  .doc-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .doc-item {
    padding: 12px 14px;
  }

  .folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .folder-card {
    padding: 16px 10px;
  }

  .shopping-grid { grid-template-columns: 1fr; }
  .shopping-card-img { height: 200px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-item .gallery-caption { opacity: 1; }

  .canva-wrapper iframe { height: 350px; }

  .lightbox-overlay { padding: 12px; }
  .lightbox-overlay img { max-width: 95%; max-height: 85%; }
  .lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; }

  .admin-panel { padding: 12px 14px; }
  .admin-panel .ap-row { flex-direction: column; }
  .admin-panel input, .admin-panel select { width: 100%; }

  .evf-stat-card { padding: 14px 16px; }
  .evf-stat-card .evf-value { font-size: 20px; }

  .file-row { padding: 10px 12px; }
}

/* ── RESPONSIVE — Mobile / Smartphone (600px) ───────────────────
   Exibe apenas 3 etapas: anterior, atual e próxima. */
@media (max-width: 600px) {
  .stepper-hero { padding: 24px 12px 20px; }
  .stepper { padding: 0; justify-content: center; gap: 0; }

  /* Esconde todos os itens por padrão */
  .stepper-step,
  .stepper-line { display: none; }

  /* Mostra apenas: etapa anterior, atual e próxima, com as 2 linhas adjacentes */
  .stepper-step.active,
  .stepper-step.adj-prev,
  .stepper-step.adj-next,
  .stepper-line.line-before-active,
  .stepper-line.line-after-active {
    display: flex;
  }

  /* Dimensões dos 3 círculos visíveis */
  .stepper-step { width: 80px; gap: 8px; }
  .stepper-step.adj-prev,
  .stepper-step.adj-next { width: 72px; opacity: 0.75; }
  .stepper-circle { width: 52px; height: 52px; border-width: 2px; }
  .stepper-step.adj-prev .stepper-circle,
  .stepper-step.adj-next .stepper-circle { width: 44px; height: 44px; }
  .stepper-circle svg.lucide, .stepper-circle i[data-lucide] { width: 22px !important; height: 22px !important; }
  .stepper-step.adj-prev .stepper-circle svg.lucide,
  .stepper-step.adj-prev .stepper-circle i[data-lucide],
  .stepper-step.adj-next .stepper-circle svg.lucide,
  .stepper-step.adj-next .stepper-circle i[data-lucide] { width: 18px !important; height: 18px !important; }

  .stepper-line { flex: 1 1 auto; min-width: 16px; max-width: 48px; margin-top: 22px; height: 2px; }

  .stepper-label { font-size: 9px; max-width: 80px; line-height: 1.15; letter-spacing: 0.02em; }
  .stepper-step.adj-prev .stepper-label,
  .stepper-step.adj-next .stepper-label { font-size: 8px; max-width: 72px; }

  .stepper-hero-title h2 { font-size: 16px; }
  .stepper-hero-title p { font-size: 11px; }
  .stepper-current-badge { font-size: 11px; padding: 5px 14px; margin-top: 16px; }

  /* Tocar no stepper (ou no badge) mostra TODAS as etapas */
  .stepper, .stepper-current-badge, .stepper-tap-hint { cursor: pointer; }
  .stepper-tap-hint {
    display: block;
    margin-top: 9px;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
  }
  .stepper-tap-hint::after { content: '▾ ver todas as etapas'; }
  .stepper-hero.stepper-expanded .stepper-tap-hint::after { content: '▴ recolher'; }
  .stepper-hero.stepper-expanded .stepper {
    flex-wrap: wrap;
    gap: 12px 4px;
    justify-content: center;
  }
  .stepper-hero.stepper-expanded .stepper-line { display: none !important; }
  .stepper-hero.stepper-expanded .stepper-step {
    display: flex !important;
    width: 70px !important;
    opacity: 1 !important;
  }
  .stepper-hero.stepper-expanded .stepper-circle { width: 44px !important; height: 44px !important; }
  .stepper-hero.stepper-expanded .stepper-circle svg.lucide,
  .stepper-hero.stepper-expanded .stepper-circle i[data-lucide] { width: 17px !important; height: 17px !important; }
  .stepper-hero.stepper-expanded .stepper-label { font-size: 8px !important; max-width: 70px !important; }

  /* Botão central de tela cheia do Canva (mobile) */
  .canva-fs-center {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: rgba(22,35,24,0.88);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.55);
    padding: 11px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  }
  .canva-fs-center svg { width: 16px; height: 16px; }

  .client-tab { padding: 7px 10px; font-size: 11px; }

  .gallery-grid { grid-template-columns: 1fr; }

  .shopping-card-body { padding: 12px; }
  .shopping-card-body h4 { font-size: 13px; }

  .doc-icon-box { width: 36px; height: 36px; font-size: 10px; }

  .folder-grid { grid-template-columns: 1fr 1fr; }
  .folder-card { padding: 14px 8px; gap: 6px; }
  .folder-card .folder-ico { width: 40px; height: 40px; }
  .folder-card h4 { font-size: 12px; }

  .login-right { padding: 24px 16px; }
  .login-box h2 { font-size: 20px; }
  .login-field input { font-size: 16px; /* prevents iOS zoom */ }

  .canva-wrapper iframe { height: 280px; }
}

/* ══ LIBERAÇÃO DE ACESSO POR SEÇÃO (admin libera pro cliente) ══════ */
.access-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.access-bar.on  { background: var(--bg-green); border-color: var(--accent); color: var(--accent-dark); }
.access-bar.off { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.access-bar-state { display: inline-flex; align-items: center; gap: 7px; }
.access-bar-state svg { width: 15px; height: 15px; }
.access-bar .btn svg { width: 14px; height: 14px; }

.access-gate {
  text-align: center;
  padding: 48px 24px !important;
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.access-gate-icon { width: 40px; height: 40px; color: var(--text-gray); opacity: 0.5; display: block; margin: 0 auto 14px; }
.access-gate-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.access-gate-sub { font-size: 13px; color: var(--text-gray); }

/* ══ BLOCO DE ABERTURA DO BRIEFING (título + boas-vindas) ══════════ */
.bf-intro { margin-bottom: 24px; }
.bf-intro-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  line-height: 1.15;
  margin: 0 0 14px;
}
.bf-intro-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--accent-dark);
  white-space: pre-wrap;
  margin: 0;
}
.bf-intro-title[contenteditable="true"],
.bf-intro-text[contenteditable="true"] { cursor: text; transition: background 0.12s; }
.bf-intro-title[contenteditable="true"]:hover,
.bf-intro-text[contenteditable="true"]:hover { background: var(--bg-light); border-radius: 8px; }
.bf-intro-title[contenteditable="true"]:focus,
.bf-intro-text[contenteditable="true"]:focus { outline: 2px solid var(--accent); border-radius: 8px; background: #fff; padding: 4px 6px; margin-left: -6px; }
@media (max-width: 560px) {
  .bf-intro-title { font-size: 24px; }
}

/* ══ TELA DE AGRADECIMENTO AO CONCLUIR O BRIEFING ═════════════════ */
.bf-thanks-modal { padding: 36px 30px; }
.bf-thanks-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.bf-thanks-icon svg { width: 30px; height: 30px; color: var(--accent-dark); }
.bf-thanks-title { font-size: 22px; font-weight: 800; color: var(--text-dark); margin: 0 0 12px; }
.bf-thanks-text { font-size: 14px; line-height: 1.7; color: var(--accent-dark); margin: 0 0 22px; }

/* ══ ARRASTAR ABAS DO WIZARD (reordenar seções) ═══════════════════ */
.bf-step-draggable { cursor: grab; }
.bf-step-draggable:active { cursor: grabbing; }
.bf-step-pill.bf-sec-dragging { opacity: 0.4; }
.bf-step-pill.bf-sec-over { box-shadow: 0 0 0 2px var(--accent-dark); }

/* Arrastar os chips do painel de seções/templates */
.bf-sp-draggable { cursor: grab; }
.bf-sp-draggable:active { cursor: grabbing; }
.bf-sp-pill.bf-sp-dragging { opacity: 0.4; }
.bf-sp-pill.bf-sp-over { box-shadow: 0 0 0 2px var(--accent-dark); }

/* ══ ABA "RESPOSTAS DO CLIENTE" ══════════════════════════════════════ */
/* Painel de alterações feitas pelo cliente */
.bf-ans-changes {
  border: 1.5px solid #f0c674;
  background: #fffaf0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 26px;
}
.bf-ans-changes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: #92610a;
  margin-bottom: 12px;
}
.bf-ans-changes-head > span { display: inline-flex; align-items: center; gap: 8px; }
.bf-ans-changes-head svg { width: 16px; height: 16px; }
.bf-ans-change {
  background: #fff;
  border: 1px solid #f3e2c0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.bf-ans-change:last-child { margin-bottom: 0; }
.bf-ans-change-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.bf-ans-change-top strong { font-size: 13px; color: var(--text-dark); }
.bf-ans-change-sec {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--bg-green);
  padding: 2px 8px;
  border-radius: 50px;
}
.bf-ans-change-date { margin-left: auto; font-size: 11px; color: var(--text-gray); }
/* Barra de versões enviadas (R01, R02…) na aba Respostas */
.bf-ver-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.bf-ver-bar-lbl { font-size: 12px; font-weight: 700; color: var(--text-gray); }
.bf-ver-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--text-dark); font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; line-height: 1.2; }
.bf-ver-chip:hover { border-color: var(--accent-dark); }
.bf-ver-chip.active { border-color: var(--accent-dark); background: var(--bg-green); }
.bf-ver-date { font-size: 10px; font-weight: 500; color: var(--text-gray); }
/* Banner do cliente quando o briefing está enviado/travado */
.bf-locked-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: var(--bg-green); border: 1px solid var(--accent); border-radius: 12px; margin-bottom: 22px; }
.bf-locked-banner-main { display: flex; align-items: center; gap: 12px; }
.bf-locked-banner-main > i { width: 26px; height: 26px; color: var(--accent-dark); flex: none; }
.bf-locked-banner-main strong { display: block; font-size: 14px; color: var(--text-dark); }
.bf-locked-banner-main span { font-size: 12px; color: var(--text-mid); }
.bf-ans-readonly { display: block; }
.bf-ver-diffnote { font-size: 12px; color: var(--text-mid); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bf-ans-thumb-missing { display: inline-flex; align-items: center; padding: 0 12px; height: 40px; border: 1px dashed var(--border); border-radius: 8px; font-size: 11px; color: var(--text-gray); }
/* Resposta tipo arquivo (fileUpload) na aba Respostas: ver + baixar */
.bf-file-list { display: flex; flex-direction: column; gap: 6px; }
.bf-file-list:not(:empty) { margin-bottom: 8px; }
.bf-file-hint { font-weight: 500; color: var(--text-gray); font-size: 11px; }
.bf-ans-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bf-ans-file + .bf-ans-file { margin-top: 10px; }
.bf-ans-file-thumb img { width: 200px; height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.bf-ans-file-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-dark); text-decoration: none; }
.bf-ans-file-link:hover { text-decoration: underline; }
.bf-ans-file-link i { width: 15px; height: 15px; }
.bf-ans-file-dl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--accent-dark); text-decoration: none; padding: 5px 10px; border: 1px solid var(--accent-dark); border-radius: 6px; }
.bf-ans-file-dl:hover { background: var(--bg-green); }
.bf-ans-file-dl i { width: 14px; height: 14px; }
.bf-ans-change-diff {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.bf-ans-change-diff svg { width: 15px; height: 15px; color: var(--text-gray); flex-shrink: 0; }
.bf-ans-from {
  color: #b91c1c;
  text-decoration: line-through;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 6px;
}
.bf-ans-to {
  color: var(--accent-dark);
  background: var(--bg-green);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
/* Miniaturas das imagens no histórico de alterações (de → para) */
.bf-ans-chg-imgs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 3px;
  border-radius: 8px;
}
.bf-ans-chg-imgs.is-from { background: #fef2f2; }
.bf-ans-chg-imgs.is-to { background: var(--bg-green); }
.bf-ans-chg-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
}
.bf-ans-chg-imgs.is-from .bf-ans-chg-thumb { opacity: 0.7; }

/* Lista de respostas por seção */
.bf-ans-section { margin-bottom: 28px; }
.bf-ans-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.bf-ans-sec-title svg { width: 18px; height: 18px; color: var(--accent-dark); }
.bf-ans-row {
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}
.bf-ans-row.is-empty { opacity: 0.55; }
.bf-ans-q {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 5px;
}
.bf-ans-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92610a;
  background: #fbeccb;
  border: 1px solid #f0c674;
  padding: 1px 7px;
  border-radius: 50px;
}
.bf-ans-a {
  font-size: 14.5px;
  color: var(--text-dark);
  line-height: 1.55;
}
.bf-ans-empty { color: var(--text-gray); }
.bf-ans-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.bf-ans-thumb {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.bf-ans-comment {
  font-size: 13px;
  color: var(--text-mid);
  background: var(--bg-light);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 4px;
}
