/* O app Cofre: a porta, o trilho das áreas, a Visão, as Tarefas, as Notas, os Mapas, os Documentos e o Assistente.
   Materiais do sistema (cosmos.css), as peças do Projetos (projetos.css) e os controles da casa (campos.css). */

.janela.j-cofre:not(.cheia) { max-width: 1380px; }
.cf-app { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cf-app, .mp { --cf-verde: #3ecf8e; --cf-vermelho: #ff8a7a; --cf-estrela: #f0b23a; }
:root[data-tema="claro"] :is(.cf-app, .mp) { --cf-verde: #12805f; --cf-vermelho: #c4382a; --cf-estrela: #c98a12; }

/* ---------------------------------------------------------------- a porta (e a troca de senha) */
.cf-porta { flex: 1; min-height: 0; display: flex; overflow-y: auto; overscroll-behavior: contain; outline: none; }
/* as superfícies que recebem o foco só para ouvir o teclado (a porta, o quadro do mapa) não ganham o anel */
.cf-porta:focus-visible, .mp-janela:focus-visible { box-shadow: none; }
.cf-porta-miolo { margin: auto; display: flex; flex-direction: column; align-items: center; padding: 20px 16px 28px; text-align: center; animation: cf-entra .24s var(--ease-out); }
@keyframes cf-entra { from { opacity: 0; transform: translateY(8px); } }
.cf-porta-icone { width: 76px; height: 76px; user-select: none; -webkit-user-drag: none; }
.cf-porta-titulo { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.cf-bolinhas { margin: 16px 0 8px; }
.cf-ajuda { min-height: 20px; max-width: 36ch; margin: 0; font-size: 13.5px; color: var(--tinta-2); }
.cf-ajuda.erro { color: var(--erro); }
.cf-teclado { display: grid; grid-template-columns: repeat(3, 64px); gap: 12px 20px; margin-top: 14px; }
.cf-teclado .tecla { width: 64px; height: 64px; font-size: 26px; color: var(--tinta); }
.cf-teclado .tecla.limpa { color: var(--tinta-2); }
.cf-teclado.travado .tecla { opacity: .32; pointer-events: none; }
.cf-folha-pin { position: relative; width: min(420px, 100%); max-height: 100%; overflow-y: auto; border-radius: 10px; background: var(--sup-folha); box-shadow: var(--brilho), 0 30px 70px -24px rgba(0, 0, 0, .8); outline: none; animation: pj-folha .2s var(--ease-out); }
.cf-folha-pin .cf-porta-miolo { padding: 26px 16px 24px; }
.cf-folha-x { position: absolute; right: 10px; top: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 7px; background: none; }

/* a ponta da barra da janela: trancar e o menu */
.j-fim .cf-trancar { height: 28px; gap: 6px; padding: 0 10px 0 8px; }
.j-fim .cf-menu { width: 28px; height: 28px; border-radius: 7px; background: none; }

/* ---------------------------------------------------------------- por dentro: o trilho, os controles e a área */
.cf { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "areas controles" "area area"; }
.cf > * { min-width: 0; min-height: 0; }
.cf-areas { grid-area: areas; align-self: center; margin: 0 0 10px 12px; }
.cf-areas button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; }
.cf-areas button .ico { display: none; }
.cf-areas button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-controles { grid-area: controles; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 48px; padding: 0 12px 10px; }
.cf-controles .segmento button { display: inline-flex; align-items: center; gap: 6px; }
.cf-area { grid-area: area; position: relative; display: flex; flex-direction: column; overflow: hidden; }
/* sem vidro (backdrop-filter) aqui dentro: a janela já é vidro, e vidro dentro de vidro faz a placa de vídeo recompor o fundo a cada troca (a "tarja"). A folha por cima já é quase opaca. */
.cf-veu { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 20px; background: var(--veu); animation: pj-veu .16s ease; }
.cf-veu[hidden] { display: none; }
.cf-estado { flex: 1; display: grid; place-items: center; padding: 24px; }
.cf-pingo { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cor, #8b93a1); }
.cf-pingo.grande { width: 13px; height: 13px; }
.cf-guardado { flex: none; font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; }
.cf-guardado.erro { color: var(--erro); }
.cf .bom { color: var(--cf-verde); }
.cf .ruim { color: var(--cf-vermelho); }
.cf-vazio { margin: 0; padding: 6px 0; font-size: 13.5px; color: var(--tinta-3); }
/* o mapa aberto ocupa a área inteira, de borda a borda */
.cf[data-cheio] { grid-template-rows: auto minmax(0, 1fr); }
.cf[data-cheio] .cf-area { margin: 0; border-radius: 0; }

/* ---------------------------------------------------------------- Visão */
.cf-visao { flex: 1; min-height: 0; scrollbar-gutter: stable; overflow-y: auto; overscroll-behavior: contain; margin: 0 10px 10px; padding: 20px 22px 22px; border-radius: 8px; background: var(--poco); container-type: inline-size; }
/* os números soltos no alto, sem cartão em volta */
.cf-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 28px; padding: 2px 2px 24px; }
.cf-num { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cf-num > span { font-size: 12.5px; font-weight: 500; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-num > b { display: block; font-size: clamp(24px, 2.6cqi, 36px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-num.negativo > b { color: var(--cf-vermelho); }
.cf-num > small { font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-fantasma-num { display: inline-block; width: 120px; height: 28px; border-radius: 6px; background: rgba(var(--f), .08); animation: pj-pulso 1.6s ease-in-out infinite; }
.cf-sem-corp { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--tinta-2); }
.cf-visao-grade { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 12px; align-items: start; }
.cf-visao-lado { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cf-bloco { min-width: 0; padding: 14px 16px 16px; border-radius: 8px; background: rgba(var(--f), .045); }
.cf-bloco > header { display: flex; align-items: center; gap: 8px; min-height: 26px; margin-bottom: 10px; }
.cf-bloco h3 { font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.cf-bloco > header small { font-size: 12.5px; color: var(--tinta-3); }
.cf-mais { flex: none; margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--tinta-2); transition: background-color .14s ease, color .14s ease; }
.cf-clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cf-cliente { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; border-radius: 8px; text-align: left; color: var(--tinta); background: rgba(var(--f), .06); transition: background-color .14s ease, transform .14s var(--ease-out); }
.cf-cliente:active, .cf-meta:active, .cf-mapa-abre:active { transform: scale(.985); }
.cf-cli-topo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cf-cli-topo b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-cli-minhas { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; color: #fff; background: var(--laranja); }
.cf-cli-din { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cf-cli-din b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.cf-cli-din small { min-width: 0; font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-barra { display: block; height: 5px; border-radius: 3px; background: rgba(var(--f), .1); overflow: hidden; }
.cf-barra i { display: block; width: var(--p, 0%); height: 100%; border-radius: 3px; background: var(--cf-verde); }
.cf-barra.batida i { background: var(--laranja); }
.cf-cli-pe { font-size: 12.5px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-cli-pe.vazio { color: var(--tinta-3); }
.cf-cli-projs { display: flex; flex-direction: column; gap: 5px; padding-top: 8px; box-shadow: inset 0 1px 0 rgba(var(--f), .07); }
.cf-cli-proj { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--tinta-2); }
.cf-cli-proj > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-mini { flex: none; display: block; width: 56px; height: 4px; border-radius: 2px; background: rgba(var(--f), .1); overflow: hidden; }
.cf-mini i { display: block; width: var(--p, 0%); height: 100%; background: var(--cf-verde); }
.cf-metas { display: flex; flex-direction: column; gap: 6px; }
.cf-meta { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 10px 11px 11px; border-radius: 8px; text-align: left; color: var(--tinta); background: rgba(var(--f), .055); transition: background-color .14s ease, transform .14s var(--ease-out); }
.cf-meta-topo { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cf-meta-topo b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-meta-topo small, .cf-meta-pe { font-size: 12px; color: var(--tinta-3); white-space: nowrap; }
.cf-meta-num { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cf-meta-num b { font-size: 20px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.cf-meta-num small { min-width: 0; font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-meta-pe { overflow: hidden; text-overflow: ellipsis; }
.cf-meta-vazia { margin-top: -4px; }
.cf-prios { display: flex; flex-direction: column; gap: 4px; margin: 0 -8px; }
.cf-prio { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 4px 8px; border-radius: 7px; text-align: left; font-size: 14px; color: var(--tinta); transition: background-color .14s ease; }
.cf-prio span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-prio small { flex: none; font-size: 12.5px; color: var(--tinta-3); }
.cf-prio small.ruim { color: var(--cf-vermelho); }
.cf-flag { flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--f), .28); }
.cf-flag.estrela { background: var(--cf-estrela); }
.cf-flag.alta { background: #f0a03a; }
.cf-flag.urgente { background: #e5484d; }

/* ---------------------------------------------------------------- Tarefas, Documentos e Assistente: lateral e meio */
.cf-tf, .cf-docs, .cf-ia { --divisa-base: 10px; position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--cf-lado, 236px) minmax(0, 1fr); }
.cf-docs, .cf-ia { grid-template-columns: var(--cf-lado, 260px) minmax(0, 1fr); }
.cf-tf > *, .cf-docs > *, .cf-ia > * { min-width: 0; min-height: 0; }
.cf-tf-meio, .cf-docs-meio, .cf-ia-meio { position: relative; display: flex; flex-direction: column; margin: 0 10px 10px 0; border-radius: 8px; background: var(--poco); overflow: hidden; }
.cf-conta { font-size: 14px; color: var(--tinta-3); }
.cf-tf-rolo { padding-bottom: 8px; }
.cf-secao > header { height: 38px; padding: 0 2px; }
.cf-secao-botao { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 4px; border-radius: 6px; }
.cf-secao-botao > .ico { color: var(--tinta-3); transition: transform .18s var(--ease-out); }
.cf-secao-botao[aria-expanded="true"] > .ico { transform: rotate(90deg); }
.cf-secao-botao small { font-size: 12.5px; color: var(--tinta-3); }
.cf-linha { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 2px 4px 2px 6px; border-radius: 7px; transition: background-color .14s ease; }
.cf-linha .tf-marca { width: 30px; height: 30px; }
.cf-linha.feita .tf-marca i { background: var(--laranja) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.400' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.500 12.500 3.500 3.500 7.500-8'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: none; }
.cf-linha-abre { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 6px 4px; border-radius: 6px; text-align: left; color: var(--tinta); }
.cf-linha-abre > b { max-width: 100%; font-size: 14.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-linha.feita .cf-linha-abre > b { color: var(--tinta-3); text-decoration: line-through; }
.cf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 100%; min-width: 0; }
.cf-chips .pj-tag { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.cf-tag-livre { --cor: #6b7688; }
.cf-no-time { color: var(--laranja-claro); }
.cf-espera.atrasado { color: #ee6b5a; }
.cf-estrela { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: var(--tinta-3); transition: color .14s ease, background-color .14s ease; }
.cf-estrela.on, .cf-estrela-mini { color: var(--cf-estrela); }
.cf-estrela.on .ico, .cf-estrela-mini .ico { fill: currentColor; }
.cf-linha:not(:hover):not(:focus-within) .cf-estrela:not(.on) { opacity: .55; }
/* o quadro */
.cf-quadro { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 0 10px 10px; overflow-x: auto; overscroll-behavior-x: contain; }
.cf-col { flex: 1 0 220px; min-width: 0; max-width: 360px; min-height: 0; display: flex; flex-direction: column; border-radius: 8px; background: color-mix(in srgb, var(--cor, #8b93a1) 9%, transparent); transition: background-color .14s ease; }
.cf-col > header { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; }
.cf-col > header small { font-size: 12.5px; color: var(--tinta-3); }
.cf-col.alvo { background: color-mix(in srgb, var(--cor, #8b93a1) 20%, transparent); }
.cf-col-rolo { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 6px 8px; overflow-y: auto; overscroll-behavior: contain; }
.cf-cartao.feita > b { color: var(--tinta-3); text-decoration: line-through; }
.cf-cartao.arrastando { opacity: .3; }
.cf.cf-arrastando, .cf.cf-arrastando * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.cf-nova-em { flex: none; display: flex; }
.cf-nova-em input { flex: 1; min-width: 0; height: 38px; padding: 0 11px; border: 0; border-radius: 7px; outline: 0; font-size: 14px; color: var(--tinta); background: rgba(var(--f), .1); box-shadow: inset 0 0 0 1px rgba(var(--f), .24); }
.cf-nova-em input::placeholder, .cf-nova input::placeholder { color: var(--tinta-3); opacity: 1; }
.cf-colunas { display: none; }
/* a tarefa aberta */
.cf-tarefa-folha > header { gap: 8px; }
.cf-titulo-tarefa { display: block; width: calc(100% + 16px); margin: 0 -8px 12px; padding: 4px 8px; border: 0; border-radius: 6px; outline: 0; resize: none; overflow: hidden; font: inherit; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--tinta); background: none; transition: background-color .14s ease, box-shadow .14s ease; }
.cf-titulo-tarefa:focus, .cf-esperando:focus, .cf-passo-t:focus, .cf-doc-titulo:focus, .mp-nome:focus { background: rgba(var(--f), .07); box-shadow: inset 0 0 0 1px rgba(var(--f), .2); }
.cf-tarefa-folha .pj-campos dd { flex: 1; }
.cf-tarefa-folha .pj-valor > span:not(.pj-tags) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-tarefa-folha .pj-valor > .pj-tags { flex-wrap: wrap; }
/* os campos de escrever dentro da folha não ganham anel: o fundo clareia um pouco, com uma linha fina */
.cf-tarefa-folha :is(.cf-titulo-tarefa, .cf-esperando, .cf-passo-t, .cf-passo-novo input):focus-visible { box-shadow: inset 0 0 0 1px rgba(var(--f), .2); }
.cf-passo-novo input { height: 30px; margin-left: -6px; padding: 0 6px; border-radius: 5px; transition: background-color .14s ease; }
.cf-passo-novo input:focus { background: rgba(var(--f), .06); }
.cf-passo-novo input:focus-visible { box-shadow: none; }
.cf-esperando { width: calc(100% + 8px); min-width: 0; height: 30px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: 6px; outline: 0; font-size: 14px; color: var(--tinta); background: none; }
.cf-esperando::placeholder, .cf-passo-novo input::placeholder { color: var(--tinta-3); opacity: 1; }
.cf-passos { margin-top: 2px; }
.cf-passos li { align-items: center; padding: 2px 0; }
.cf-passo-t { flex: 1; min-width: 0; height: 30px; padding: 0 6px; border: 0; border-radius: 5px; outline: 0; font-size: 14.5px; color: var(--tinta); background: none; }
.cf-passos li.feito .cf-passo-t { color: var(--tinta-3); text-decoration: line-through; }
.cf-passos li .pj-marca { margin: 0 -4px 0 -4px; }
.cf-passos li:focus-within .pj-tira { opacity: 1; }
.cf-tarefa-dir { gap: 0; }
.cf-tarefa-dir > section { flex: none; padding: 0 16px 18px; }
.cf-tarefa-dir > section > h3 { padding: 0; }
.cf-enviada { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; font-size: 13.5px; line-height: 1.4; color: var(--tinta-2); }
.cf-enviada .ico { margin-top: 1px; color: var(--laranja-claro); }
.cf-mandar { width: 100%; }
.cf-caminho { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cf-caminho li { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; color: var(--tinta-2); }
.cf-caminho small { font-size: 12px; color: var(--tinta-3); }
.cf-tarefa-pe { flex: none; padding: 10px 16px 16px; }

/* ---------------------------------------------------------------- Notas: o notas.js no poço do Cofre */
.cf-area > .nt { margin: 0 10px 10px; padding: 16px 14px 18px; border-radius: 8px; background: var(--poco); }

/* ---------------------------------------------------------------- Documentos: a lista e o leitor */
.cf-doc-item small { flex: none; }
.cf-doc-topo { gap: 8px; }
.cf-doc-quando { flex: none; font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; }
.cf-doc-titulo { flex: 1; min-width: 0; height: 34px; margin-left: -4px; padding: 0 8px; border: 0; border-radius: 6px; outline: 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--tinta); background: none; }
.cf-doc-escrita { flex: 1; min-height: 0; display: flex; padding: 0 12px 12px; }
.cf-doc-texto { flex: 1; width: 100%; min-height: 0; padding: 16px 20px; border: 0; border-radius: 7px; outline: 0; resize: none; font: inherit; font-size: 15px; line-height: 1.65; color: var(--tinta); background: rgba(var(--f), .045); overscroll-behavior: contain; }
.cf-doc-texto::placeholder { color: var(--tinta-3); opacity: 1; }
.cf-leitor { padding: 8px 24px 48px; }
/* a tipografia de leitura: os documentos, as respostas do assistente e o documento do mapa */
.cf-md { max-width: 72ch; margin: 0 auto; font-size: 15.5px; line-height: 1.68; color: var(--tinta); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.cf-md > :first-child { margin-top: 0; }
.cf-md h2 { margin: 1.5em 0 .5em; font-size: 23px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.cf-md h3 { margin: 1.4em 0 .45em; font-size: 18.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.cf-md h4 { margin: 1.3em 0 .4em; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.cf-md p { margin: 0 0 .9em; }
.cf-md ul, .cf-md ol { margin: 0 0 .9em; padding-left: 1.4em; }
.cf-md li { margin: .25em 0; }
.cf-md li::marker { color: var(--tinta-3); }
.cf-md .cf-marcavel { list-style: none; position: relative; margin-left: -1.4em; padding-left: 1.6em; }
.cf-md .cf-marcavel > i { position: absolute; left: 0; top: .35em; width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(var(--f), .45); }
.cf-md .cf-marcavel.ok > i { background: #2f9e6e; box-shadow: none; }
.cf-md .cf-marcavel.ok { color: var(--tinta-2); }
.cf-md blockquote { margin: 0 0 .9em; padding: 10px 14px; border-radius: 7px; color: var(--tinta-2); background: rgba(var(--f), .05); font-style: italic; }
.cf-md code { padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; background: rgba(var(--f), .08); }
.cf-md pre { margin: 0 0 1em; padding: 12px 14px; border-radius: 7px; background: rgba(var(--f), .06); overflow-x: auto; }
.cf-md pre code { padding: 0; background: none; font-size: 13.5px; line-height: 1.55; }
.cf-md a { color: var(--laranja-claro); text-decoration: underline; text-underline-offset: 2px; }
.cf-md hr { height: 1px; margin: 1.6em 0; border: 0; background: rgba(var(--f), .12); }
.cf-md strong { font-weight: 650; }
.cf-tabela { margin: 0 0 1em; overflow-x: auto; }
.cf-md table { border-collapse: collapse; font-size: 14px; }
.cf-md th, .cf-md td { padding: 6px 12px 6px 0; text-align: left; vertical-align: top; box-shadow: inset 0 -1px 0 rgba(var(--f), .1); }
.cf-md th { font-weight: 600; color: var(--tinta-2); }
.cf-md-vazio { color: var(--tinta-3); }

/* ---------------------------------------------------------------- Assistente */
.cf-falas { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; }
.cf-fala { max-width: min(680px, 86%); min-width: 0; }
.cf-fala.eu { align-self: flex-end; padding: 9px 13px 8px; border-radius: 10px; background: rgba(var(--f), .1); }
.cf-fala.eu p { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.cf-fala.ia { align-self: flex-start; }
.cf-fala.ia .cf-md { margin: 0; font-size: 15px; }
.cf-fala small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--tinta-3); text-align: right; }
.cf-fala.ia small { text-align: left; }
.cf-sem-resposta { align-self: flex-end; margin: -6px 2px 0; font-size: 12.5px; color: var(--tinta-3); }
.cf-compor { flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 12px; padding: 6px 6px 6px 14px; border-radius: 10px; background: rgba(var(--f), .08); transition: background-color .16s ease; }
.cf-compor:focus-within { background: rgba(var(--f), .11); }
.cf-compor textarea { flex: 1; min-width: 0; min-height: 34px; max-height: 200px; padding: 7px 0; border: 0; outline: 0; resize: none; font: inherit; font-size: 15px; line-height: 1.45; color: var(--tinta); background: none; }
.cf-compor textarea::placeholder { color: var(--tinta-3); opacity: 1; }
.cf-compor textarea:focus-visible { box-shadow: none; }
.cf-enviar { flex: none; width: 34px; height: 34px; border-radius: 8px; transition: opacity .16s ease, transform .14s var(--ease-out); }
.cf-compor.vazio .cf-enviar { opacity: .4; }
.cf-ia-nova .ico { color: var(--laranja-claro); }

/* ---------------------------------------------------------------- Mapas: a lista */
.cf-mapas { display: flex; flex-direction: column; margin: 0 10px 10px; padding: 16px; border-radius: 8px; background: var(--poco); }
.cf-mapas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.cf-mapas-grade > .pj-fantasma { height: 190px; }
.cf-mapa { position: relative; min-width: 0; border-radius: 9px; background: rgba(var(--f), .06); transition: background-color .14s ease; }
.cf-mapa-abre { display: flex; flex-direction: column; width: 100%; min-width: 0; border-radius: inherit; overflow: hidden; text-align: left; color: var(--tinta); transition: transform .14s var(--ease-out); }
.cf-mini-mapa { display: block; height: 136px; background: var(--mp-fundo, #151a21); }
.cf-mini-mapa svg { display: block; width: 100%; height: 100%; }
.cf-mini-mapa.vazia { background-image: radial-gradient(rgba(var(--f), .14) 1px, transparent 1.3px); background-size: 18px 18px; }
.cf-mapa-pe { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 46px 12px 12px; }
.cf-mapa-pe b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-mapa-pe small { font-size: 12.5px; color: var(--tinta-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-mapa-mais { position: absolute; right: 8px; bottom: 12px; width: 30px; height: 30px; border-radius: 7px; background: none; }
.cf-mapa-nome-campo { width: 100%; min-width: 0; height: 30px; margin: -3px 0 0 -6px; padding: 0 6px; border: 0; border-radius: 6px; outline: 0; font-size: 14.5px; font-weight: 600; color: var(--tinta); background: rgba(var(--f), .1); box-shadow: inset 0 0 0 1px rgba(var(--f), .26); }
.cf-confirma { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--tinta-2); }
.cf-confirma b { color: var(--tinta); }
.cf, .cf-mapas { --mp-fundo: #141920; --mp-cartao: #252b35; --mp-traco: rgba(245, 243, 239, .34); --mp-area: rgba(255, 255, 255, .035); --mp-linha: rgba(245, 243, 239, .55); }
:root[data-tema="claro"] :is(.cf, .cf-mapas) { --mp-fundo: #eef0f3; --mp-cartao: #ffffff; --mp-traco: rgba(29, 29, 31, .3); --mp-area: rgba(0, 0, 0, .03); --mp-linha: rgba(29, 29, 31, .5); }

/* ---------------------------------------------------------------- Mapas: o quadro */
.mp-cabeca { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.mp-volta { flex: none; gap: 4px; padding-left: 6px; }
.mp-nome { flex: 0 1 300px; min-width: 60px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; outline: 0; font-size: 15px; font-weight: 600; color: var(--tinta); background: none; text-overflow: ellipsis; }
.mp-situacao { flex: 1; min-width: 0; font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-situacao.erro { color: var(--erro); }
.mp-cabeca .redondo { flex: none; width: 30px; height: 30px; border-radius: 7px; background: none; }
.mp-cabeca .redondo:disabled { opacity: .32; cursor: default; }
.mp { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mp-janela { position: absolute; inset: 0; overflow: hidden; outline: none; touch-action: none; background-color: var(--mp-fundo); background-image: radial-gradient(rgba(var(--f), .15) 1px, transparent 1.3px); }
.mp:is([data-ferramenta="mao"], .com-espaco) .mp-janela, .mp.so-ler .mp-janela { cursor: grab; }
.mp.andando .mp-janela, .mp.andando .mp-peca { cursor: grabbing; }
.mp:is([data-ferramenta="nota"], [data-ferramenta="forma"], [data-ferramenta="texto"], [data-ferramenta="checklist"], [data-ferramenta="area"], [data-ferramenta="pessoa"], [data-ferramenta="processo"]) .mp-janela { cursor: crosshair; }
.mp[data-ferramenta="seta"] .mp-peca { cursor: alias; }
.mp.movendo, .mp.movendo * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.mp-mundo { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mp-mundo.mexendo, .mp-mundo.suave { will-change: transform; }
.mp-mundo.suave { transition: transform .3s var(--ease-out); }
.mp-linhas { position: absolute; left: 0; top: 0; z-index: 5; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.mp-lig .mp-alvo-lig { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.mp-traco { fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.mp-lig.sel .mp-traco { stroke-width: 3.5; }
.mp-ponta { pointer-events: none; }
.mp-fundo-rotulo { fill: var(--mp-fundo); stroke: var(--mp-traco); stroke-width: 1; pointer-events: none; }
.mp-rotulo-lig { font: 600 12.5px var(--fonte), system-ui, sans-serif; fill: var(--tinta); pointer-events: none; }
.mp-peca { position: absolute; box-sizing: border-box; color: var(--tinta); cursor: default; }
.mp-peca.sel { outline: calc(2px * var(--inv, 1)) solid var(--laranja); outline-offset: calc(3px * var(--inv, 1)); }
.mp-peca.alvo { outline: calc(2px * var(--inv, 1)) dashed var(--laranja); outline-offset: calc(4px * var(--inv, 1)); }
.mp-peca [data-campo] { outline: none; }
.mp-peca .escrevendo { cursor: text; user-select: text; -webkit-user-select: text; border-radius: 3px; box-shadow: 0 0 0 calc(2px * var(--inv, 1)) rgba(var(--laranja-rgb), .35); }
.mp-txt { position: relative; min-height: 1.4em; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.mp-peca[data-tipo="nota"] { padding: 14px; border-radius: 4px; color: var(--tinta-peca, #1d1c1a); background: var(--cor, #ffd666); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .65); overflow: hidden; }
.mp-peca[data-tipo="texto"] .mp-txt { font-weight: 600; letter-spacing: -.012em; line-height: 1.2; }
.mp-peca[data-tipo="forma"] { display: grid; place-items: center; padding: 12px 18px; text-align: center; color: var(--tinta-peca, var(--tinta)); }
.mp-forma-fundo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mp-forma-fundo > * { fill: var(--cor, rgba(128, 128, 128, .08)); stroke: var(--mp-traco); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mp-peca[data-tipo="forma"][data-cor] .mp-forma-fundo > * { stroke: color-mix(in srgb, var(--cor) 70%, #000); }
.mp-peca[data-tipo="area"] { border: calc(1.5px * var(--inv, 1)) dashed var(--mp-traco); border-radius: 10px; background: color-mix(in srgb, var(--cor, transparent) 13%, var(--mp-area)); }
.mp-area-titulo { position: absolute; left: 14px; top: 10px; max-width: calc(100% - 28px); padding: 2px 4px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tinta-2); cursor: grab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-area-titulo.escrevendo { white-space: normal; }
.mp-peca:is([data-tipo="checklist"], [data-tipo="formulario"], [data-tipo="processo"], [data-tipo="pessoa"]) { padding: 12px 14px; border-radius: 9px; color: var(--tinta-peca, var(--tinta)); background: var(--mp-cartao); box-shadow: 0 0 0 1px rgba(var(--f), .08), 0 12px 26px -16px rgba(0, 0, 0, .6); }
.mp-peca[data-cor]:is([data-tipo="checklist"], [data-tipo="formulario"], [data-tipo="processo"], [data-tipo="pessoa"]) { background: var(--cor); }
.mp-card-topo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mp-card-topo .ico { color: var(--laranja-claro); }
.mp-card-titulo { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mp-card-topo small { flex: none; font-size: 12px; opacity: .65; }
.mp-fio { display: block; height: 4px; margin-bottom: 8px; border-radius: 2px; background: rgba(128, 128, 128, .2); overflow: hidden; }
.mp-fio i { display: block; height: 100%; background: #3fbf7a; }
.mp-itens { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.mp-itens li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; font-size: 14px; line-height: 1.35; }
.mp-caixinha { flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border: 1.5px solid rgba(128, 128, 128, .55); border-radius: 5px; color: #fff; }
.mp-itens li.feito .mp-caixinha { border-color: #2f9e6e; background: #2f9e6e; }
.mp-itens li.feito .mp-item-txt { opacity: .6; text-decoration: line-through; }
.mp-item-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mp-tira { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; opacity: 0; color: inherit; transition: opacity .14s ease; }
.mp-itens li:hover .mp-tira, .mp-tira:focus-visible { opacity: .7; }
.mp-novo-item input { width: 100%; height: 28px; margin-top: 4px; padding: 0 8px; border: 0; border-radius: 6px; outline: 0; font-size: 13.5px; color: inherit; background: rgba(128, 128, 128, .14); }
.mp-novo-item input::placeholder { color: inherit; opacity: .55; }
.mp-campos { display: flex; flex-direction: column; gap: 8px; }
.mp-campo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mp-rotulo { font-size: 12.5px; opacity: .65; overflow-wrap: anywhere; }
.mp-resposta { font-size: 14px; overflow-wrap: anywhere; }
.mp-resposta.vazia { opacity: .5; }
.mp-peca[data-tipo="pessoa"] { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; text-align: center; }
.mp-pessoa-foto { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; font-size: 22px; font-weight: 700; color: #fff; background: var(--cor, #6b7688); }
.mp-peca[data-cor] .mp-pessoa-foto { background: #6b7688; }
.mp-pessoa-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-pessoa-nome { max-width: 100%; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mp-pessoa-cargo { max-width: 100%; min-height: 1.3em; font-size: 13px; line-height: 1.3; opacity: .7; overflow-wrap: anywhere; }
.mp-proc-linha { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; font-size: 13.5px; box-shadow: inset 0 1px 0 rgba(128, 128, 128, .18); }
.mp-proc-linha > span { flex: none; width: 70px; font-size: 12px; opacity: .65; }
.mp-proc-valor { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mp-proc-valor.vazio:not(.escrevendo)::before { content: "—"; opacity: .5; }
.mp-peca[data-tipo="doc"] { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 12px; border-radius: 4px; color: #1d1c1a; background: #fbfaf7; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 12px 26px -16px rgba(0, 0, 0, .6); overflow: hidden; }
.mp-dobra { position: absolute; right: 0; top: 0; width: 22px; height: 22px; background: linear-gradient(225deg, var(--mp-fundo) 50%, #e2dfd6 50%); }
.mp-doc-titulo { padding-right: 16px; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mp-doc-previa { flex: 1; min-height: 0; overflow: hidden; font-size: 12.5px; line-height: 1.45; color: #5b5953; white-space: pre-line; overflow-wrap: anywhere; }
.mp-abre { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: #1d1c1a; background: rgba(0, 0, 0, .07); }
/* as alças de tamanho e os pontos de ligar, sempre do mesmo tamanho na tela */
.mp-alca { position: absolute; z-index: 3; width: calc(10px * var(--inv, 1)); height: calc(10px * var(--inv, 1)); border-radius: 2px; background: #fff; box-shadow: 0 0 0 calc(1.5px * var(--inv, 1)) var(--laranja); }
.mp-alca[data-canto="nw"] { left: calc(-5px * var(--inv, 1)); top: calc(-5px * var(--inv, 1)); cursor: nwse-resize; }
.mp-alca[data-canto="ne"] { right: calc(-5px * var(--inv, 1)); top: calc(-5px * var(--inv, 1)); cursor: nesw-resize; }
.mp-alca[data-canto="sw"] { left: calc(-5px * var(--inv, 1)); bottom: calc(-5px * var(--inv, 1)); cursor: nesw-resize; }
.mp-alca[data-canto="se"] { right: calc(-5px * var(--inv, 1)); bottom: calc(-5px * var(--inv, 1)); cursor: nwse-resize; }
.mp-ponto { position: absolute; z-index: 3; width: calc(12px * var(--inv, 1)); height: calc(12px * var(--inv, 1)); border-radius: 50%; background: var(--laranja); box-shadow: 0 0 0 calc(2px * var(--inv, 1)) #fff; cursor: crosshair; }
.mp-ponto[data-lado="n"] { left: calc(50% - 6px * var(--inv, 1)); top: calc(-24px * var(--inv, 1)); }
.mp-ponto[data-lado="s"] { left: calc(50% - 6px * var(--inv, 1)); bottom: calc(-24px * var(--inv, 1)); }
.mp-ponto[data-lado="e"] { top: calc(50% - 6px * var(--inv, 1)); right: calc(-24px * var(--inv, 1)); }
.mp-ponto[data-lado="w"] { top: calc(50% - 6px * var(--inv, 1)); left: calc(-24px * var(--inv, 1)); }
.mp-marquise { position: absolute; z-index: 19; border: 1px solid var(--laranja); border-radius: 2px; background: rgba(var(--laranja-rgb), .08); pointer-events: none; }
.mp-rascunho { position: absolute; z-index: 19; border: 1.5px dashed var(--laranja); border-radius: 4px; pointer-events: none; }
/* as ferramentas, a barra da peça escolhida, o zoom e o aviso: por cima do quadro */
.mp-ferramentas, .mp-submenu, .mp-contexto, .mp-zoom, .mp-aviso { position: absolute; z-index: 20; display: flex; align-items: center; border-radius: 10px; color: var(--tinta); background: var(--sup-folha); box-shadow: var(--brilho), 0 16px 36px -18px rgba(0, 0, 0, .75); }
.mp-ferramentas { left: 12px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 4px; padding: 5px; }
.mp-submenu { left: 62px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 4px; padding: 5px; }
.mp-bt { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; color: var(--tinta-2); transition: background-color .14s ease, color .14s ease; }
.mp-bt[aria-pressed="true"], .mp-bt.on { color: var(--tinta); background: rgba(var(--f), .14); }
.mp-ferramentas .mp-bt[aria-pressed="true"] { color: #fff; background: var(--laranja); }
.mp-bt:disabled { opacity: .35; cursor: default; }
.mp-forma-ico { display: block; width: 16px; height: 16px; border: 1.6px solid currentColor; border-radius: 2px; }
.mp-forma-ico[data-forma="elipse"] { border-radius: 50%; }
.mp-forma-ico[data-forma="losango"] { transform: rotate(45deg) scale(.78); }
.mp-forma-ico[data-forma="pilula"] { width: 20px; height: 11px; border-radius: 6px; }
.mp-contexto { flex-wrap: wrap; gap: 2px; max-width: calc(100% - 16px); padding: 5px; }
.mp-grupo { display: flex; align-items: center; gap: 3px; padding: 0 4px; }
.mp-grupo + .mp-grupo { box-shadow: inset 1px 0 0 rgba(var(--f), .1); }
.mp-cor { flex: none; width: 22px; height: 22px; margin: 0 1px; border: 1px solid rgba(var(--f), .25); border-radius: 50%; background: var(--c); transition: transform .14s var(--ease-out); }
.mp-cor.sem { position: relative; background: none; border: 1.5px solid rgba(var(--f), .4); }
.mp-cor.sem::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; margin-top: -.75px; background: rgba(var(--f), .5); transform: rotate(-45deg); }
.mp-cor.on { box-shadow: 0 0 0 2px var(--sup-folha), 0 0 0 3.5px var(--tinta); }
.mp-cor:active { transform: scale(.9); }
.mp-texto-bt { flex: none; height: 30px; padding: 0 9px; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--tinta-2); transition: background-color .14s ease, color .14s ease; }
.mp-texto-bt.on { color: var(--tinta); background: rgba(var(--f), .14); }
.mp-zoom { right: 12px; bottom: 12px; gap: 2px; padding: 4px; }
.mp-zoom-txt { width: auto; min-width: 54px; font-size: 12.5px; font-weight: 600; }
.mp-aviso { left: 50%; top: 12px; transform: translateX(-50%); z-index: 22; gap: 8px; max-width: calc(100% - 24px); padding: 7px 7px 7px 14px; font-size: 13.5px; }
.mp-aviso span { min-width: 0; }
.mp-campo-rotulo { position: absolute; z-index: 25; width: 220px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; outline: 0; font-size: 13.5px; color: var(--tinta); background: var(--sup-folha); box-shadow: var(--brilho), 0 0 0 1.5px var(--laranja); transform: translate(-50%, -50%); }
/* o documento do mapa, aberto para ler: a área inteira */
.mp-doc { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--sup-folha); animation: mp-doc-entra .18s ease-out; }
@keyframes mp-doc-entra { from { opacity: 0; } }
.mp-doc[hidden] { display: none; }
.mp-doc-topo { flex: none; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; }
.mp-doc-topo b { min-width: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-doc-rolo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 24px 48px; }

@media (hover: hover) and (pointer: fine) {
  .cf-cliente:hover, .cf-meta:hover, .cf-mapa:hover { background: rgba(var(--f), .1); }
  .cf-prio:hover, .cf-linha:hover, .cf-secao-botao:hover { background: rgba(var(--f), .07); }
  .cf-mais:hover, .cf-estrela:hover, .mp-bt:not([aria-pressed="true"]):not(.on):not(:disabled):hover, .mp-texto-bt:not(.on):hover { color: var(--tinta); background: rgba(var(--f), .1); }
  .mp-bt.perigo:hover { color: var(--erro); }
  .mp-abre:hover { background: rgba(0, 0, 0, .12); }
  .mp-cor:hover { transform: scale(1.1); }
}

/* ---------------------------------------------------------------- celular: o trilho vira a barra de baixo, como num app */
@media (max-width: 860px) {
  .cf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "controles" "area" "areas"; }
  .cf-areas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-radius: 0; background: none; box-shadow: inset 0 1px 0 rgba(var(--f), .08); }
  .cf-areas button { flex-direction: column; gap: 2px; min-width: 0; height: auto; min-height: 50px; padding: 6px 0 4px; border-radius: 8px; font-size: 10px; font-weight: 500; letter-spacing: -.01em; color: var(--tinta-3); }
  /* no celular o botão redondo vira flex (.so-celular): o ícone continua no meio */
  .cf .redondo { justify-content: center; align-items: center; }
  .cf-areas button .ico { display: block; }
  .cf-areas button.on { color: var(--laranja-claro); background: none; }
  .cf-areas button span { max-width: 100%; }
  .cf-controles { justify-content: flex-start; min-height: 0; padding: 6px 10px; }
  .cf-controles:empty { display: none; }
  .cf-controles .segmento { margin-left: auto; }
  .cf[data-cheio] { grid-template-rows: auto minmax(0, 1fr); }
  .cf[data-cheio] .cf-areas { display: none; }
  .cf-visao { margin: 8px 8px 0; padding: 18px 14px 20px; }
  .cf-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding-bottom: 20px; }
  .cf-num > b { font-size: 24px; }
  .cf-visao-grade { grid-template-columns: minmax(0, 1fr); }
  .cf-clientes { grid-template-columns: minmax(0, 1fr); }
  .cf-prio { min-height: 44px; font-size: 15px; }
  .cf-mais { width: 36px; height: 36px; }
  /* as partes com lateral viram duas telas: a lista e, ao tocar, o que foi escolhido */
  .cf-tf, .cf-docs, .cf-ia { grid-template-columns: minmax(0, 1fr); }
  :is(.cf-tf, .cf-docs, .cf-ia)[data-vista="meio"] > aside, :is(.cf-tf, .cf-docs, .cf-ia)[data-vista="lado"] > section { display: none; }
  .cf-tf-meio, .cf-docs-meio, .cf-ia-meio { margin: 8px 8px 0; }
  .cf-tf-lado, .cf-docs-lado, .cf-ia-lado { padding-top: 8px; }
  .cf-linha { min-height: 50px; }
  .cf-linha .tf-marca { width: 38px; height: 38px; }
  .cf-linha-abre > b { font-size: 15.5px; white-space: normal; }
  .cf-estrela { width: 40px; height: 40px; }
  .cf-secao-botao { height: 40px; }
  .cf-colunas { flex: none; display: flex; }
  .cf-quadro { overflow-x: hidden; }
  .cf-quadro .cf-col { display: none; flex: 1 1 auto; max-width: none; }
  .cf-quadro .cf-col.vista { display: flex; }
  .cf-col > header { display: none; }
  .cf-col-rolo { padding-top: 8px; }
  .cf-nova-em input { height: 44px; font-size: 16px; }
  .cf-nova { margin-bottom: 10px; }
  .cf-titulo-tarefa { font-size: 20px; }
  .cf-esperando, .cf-passo-t { height: 40px; font-size: 16px; }
  .cf-passos li .pj-marca { margin: 0 -6px; }
  .cf-area > .nt { margin: 8px 8px 0; padding: 12px 10px 16px; }
  .cf-mapas { margin: 8px 8px 0; padding: 12px; }
  .cf-mapas-grade { grid-template-columns: minmax(0, 1fr); }
  .cf-mapa-mais { width: 40px; height: 40px; bottom: 8px; }
  .mp-cabeca .redondo { width: 36px; height: 36px; }
  .mp-nome { font-size: 16px; }
  .mp-zoom .mp-bt { width: 40px; height: 40px; }
  .cf-doc-titulo { font-size: 17px; }
  .cf-doc-quando { display: none; }
  .cf-doc-texto { font-size: 16px; padding: 14px; }
  .cf-leitor { padding: 4px 16px 40px; }
  .cf-md { font-size: 16px; }
  .cf-compor { margin: 0 8px 8px; }
  .cf-compor textarea { font-size: 16px; }
  .cf-enviar { width: 40px; height: 40px; }
  .cf-fala { max-width: 92%; }
  .cf-teclado { grid-template-columns: repeat(3, 72px); gap: 14px 22px; }
  .cf-teclado .tecla { width: 72px; height: 72px; font-size: 28px; }
  .j-fim .cf-trancar { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .j-fim .cf-trancar span { display: none; }
  .j-fim .cf-menu { width: 36px; height: 36px; }
  .cf-folha-pin { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .cf-veu { padding: 0; }
  .cf-veu > .pj-form { width: 100%; height: 100%; border-radius: 0; }
  .cf-folha-x { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .cf-porta-miolo, .cf-veu, .mp-doc, .cf-fantasma-num { animation: none; } .mp-mundo.suave { transition: none; } }
