/* central.css — a Central de Inteligência (public/central.html), só do dono.
   A cara é a do Serre Mais (verde escuro, verde médio, madeira, o fundo claro; laranja SÓ no que pede a sua
   atenção), mas com assinatura própria: a sede é uma maquete montada sobre uma tábua (js/escritorio.js),
   num palco verde-escuro; o resto da página são fichas claras em volta dela. As cores da cena (madeira,
   pele, roupa) são do desenho e não mudam com o tema; a página em volta segue as variáveis do base.css. */

.ce {
  --ce-verde: #1B4332;
  --ce-verde2: #2D6A4F;
  --ce-noite: #10291E;
  --ce-madeira: #D4A373;
  --ce-madeira-escura: #8B5E34;
  --ce-laranja: #E2763E;
  --ce-vivo: #52B788;
  --ce-menta: #A8E6CF;
  --ce-vermelho: #CE3A3A;
  --ce-cinza: #8A978F;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--fonte);
  margin: 0;
  min-height: 100vh;
}
.ce *, .ce *::before, .ce *::after { box-sizing: border-box; }
.ce button { font: inherit; }
.ce [hidden] { display: none !important; }

/* ---------------------------------------------------------------- o topo */
.ce-topo {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; min-height: 60px;
  background: linear-gradient(100deg, var(--ce-noite), var(--ce-verde) 60%, #24533F);
  color: #fff;
  box-shadow: 0 2px 14px rgba(16, 41, 30, .25);
}
.ce-marca { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ce-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #F3F6F2; display: grid; place-items: center; }
.ce-logo svg { width: 26px; height: 26px; color: #16804A; }
.ce-marca b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.ce-marca small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ce-madeira); }
.ce-resumo { display: flex; gap: 8px; flex-wrap: wrap; margin-left: 10px; }
.ce-resumo span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ce-resumo i { width: 8px; height: 8px; border-radius: 50%; background: var(--cor, var(--ce-menta)); }
.ce-resumo .atencao { background: rgba(226, 118, 62, .22); color: #FFD9C2; }
.ce-acoes { margin-left: auto; display: flex; gap: 8px; }
.ce-topo-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
}
.ce-topo-btn:hover { background: rgba(255, 255, 255, .16); }
.ce-topo-btn svg { width: 18px; height: 18px; }
.ce-conta {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--ce-laranja); color: #212529; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

/* ---------------------------------------------------------------- faixas de aviso (instalar, chave…) */
.ce-faixas { max-width: 1560px; margin: 0 auto; padding: 14px 20px 0; display: grid; gap: 10px; }
.ce-faixas:empty { display: none; }
.ce-faixa {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 16px;
  background: var(--papel); border: 1px solid var(--linha); box-shadow: var(--sombra-1); font-size: 14px; line-height: 1.45;
}
.ce-faixa svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ce-madeira-escura); }
.ce-faixa > div > b { display: block; margin-bottom: 2px; }
.ce-faixa p { margin: 0; color: var(--tinta2); }
.ce-faixa.atencao { border-color: rgba(226, 118, 62, .55); background: rgba(226, 118, 62, .07); }
.ce-faixa.atencao svg { color: var(--ce-laranja); }
.ce-faixa .ce-link { margin-top: 6px; }

/* ---------------------------------------------------------------- a grade da página */
.ce-grade {
  max-width: 1560px; margin: 0 auto; padding: 16px 20px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
}
.ce-sede { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1100px) {
  .ce-grade { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; }
  .ce-lado { position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; }
  .ce-lado-corpo { overflow-y: auto; }
}

/* ---------------------------------------------------------------- o palco (a maquete) */
.ce-palco-cartao {
  position: relative; border-radius: 26px; overflow: hidden;
  padding: 46px 14px 12px;
  background:
    radial-gradient(rgba(168, 230, 207, .07) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 50% 40%, #24533F 0%, #17392A 55%, var(--ce-noite) 100%);
  box-shadow: 0 18px 40px rgba(16, 41, 30, .22);
}
.ce-palco-topo {
  position: absolute; top: 12px; left: 16px; right: 16px; z-index: 3;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #E7F2EC; pointer-events: none;
}
.ce-ao-vivo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ce-ao-vivo i { width: 9px; height: 9px; border-radius: 50%; background: var(--ce-vivo); box-shadow: 0 0 0 0 rgba(82, 183, 136, .6); animation: ce-pulsa 2s infinite; }
.ce-ao-vivo.parado i { background: var(--ce-cinza); animation: none; }
.ce-legenda { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; color: rgba(231, 242, 236, .8); }
.ce-legenda span { display: inline-flex; align-items: center; gap: 5px; }
.ce-legenda i { width: 8px; height: 8px; border-radius: 50%; background: var(--cor); }
.ce-legenda [data-estado="disponivel"] { --cor: #A8E6CF; }
.ce-legenda [data-estado="trabalhando"] { --cor: #52B788; }

.es-palco { position: relative; width: 100%; aspect-ratio: 1100 / 700; margin: 0 auto; }
@media (min-width: 1100px) {
  /* no computador, a sede e o pedido ao Diretor cabem na tela sem rolar */
  .es-palco { width: min(100%, max(660px, calc((100vh - 330px) * 1.5714))); }
}
.es-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.es-cracha-camada, .es-baloes { position: absolute; inset: 0; pointer-events: none; }
.es-cracha-camada > * { pointer-events: auto; }

/* os textos desenhados na cena */
.chao-rotulo { font: 800 8.6px var(--fonte); letter-spacing: .14em; fill: #1B4332; opacity: .55; }
.placa-nome { font: 800 5.3px var(--fonte); letter-spacing: .06em; fill: #10291E; }
.parede-titulo { font: 800 13px var(--fonte); letter-spacing: .04em; fill: #1B4332; }
.parede-sub { font: 700 6.6px var(--fonte); letter-spacing: .16em; fill: #8B5E34; }

/* as telas dos computadores: apagadas quando o agente está parado, vivas quando trabalha */
.tl-fundo { fill: #0B1F16; }
.tl-a { fill: #52B788; }
.tl-b { fill: #D4A373; }
.tl-c { fill: #A8E6CF; opacity: .6; }
.tl-linha, .tl-pulso { stroke: #A8E6CF; stroke-linecap: round; stroke-linejoin: round; }
.tl-barras rect { fill: #52B788; }
.tl-grade rect { fill: #2D6A4F; }
.tl-grade rect.tl-b { fill: #D4A373; }
.tl-lista rect { fill: #A8E6CF; opacity: .75; }
.tl-anel { stroke: #52B788; }
.tl-txt { font: 800 5px var(--fonte); fill: #D4A373; }
.posto-telas .tl-conteudo { opacity: .32; transition: opacity .4s; }
.posto-telas[data-estado="trabalhando"] .tl-conteudo { opacity: 1; animation: ce-tela 1.4s ease-in-out infinite; }
.posto-telas[data-estado="trabalhando"] .tl-pisca { animation: ce-pisca .9s steps(2) infinite; }
.posto-telas[data-estado="aguardando_voce"] .tl-conteudo,
.posto-telas[data-estado="concluiu"] .tl-conteudo { opacity: .75; }
.posto-telas[data-estado="desligado"] .tl-conteudo,
.posto-telas[data-estado="sem_ia"] .tl-conteudo { opacity: 0; }
.posto-telas[data-estado="problema"] .tl-fundo { fill: #3A1414; }

/* os bonecos */
.posto-boneco, .posto-mesa, .posto-telas { cursor: pointer; }
.bn-cabeca, .bn-braco, .bn-mao { transform-box: fill-box; }
.bn-cabeca { transform-origin: 50% 100%; transition: transform .4s; }
.bn-braco { transform-origin: 50% 0; }
.bn-mao { display: none; transform-origin: 50% 100%; }
.posto-boneco[data-estado="trabalhando"] .bn-braco { animation: ce-digita .32s ease-in-out infinite alternate; }
.posto-boneco[data-estado="trabalhando"] .bn-braco.d { animation-delay: .16s; }
.posto-boneco[data-estado="trabalhando"] .bn-cabeca { animation: ce-cabeca 2.6s ease-in-out infinite; }
.posto-boneco[data-estado="aguardando_voce"] .bn-mao { display: inline; animation: ce-acena 1.3s ease-in-out infinite; }
.posto-boneco[data-estado="aguardando_voce"] .bn-braco.d { display: none; }
.posto-boneco[data-estado="problema"] .bn-cabeca { transform: rotate(9deg); }
.posto-boneco[data-estado="desligado"] .bn,
.posto-boneco[data-estado="sem_ia"] .bn { opacity: .5; filter: grayscale(.85); }
.posto-boneco:hover .bn-corpo { transform: translateY(-1.5px); }
.bn-corpo { transition: transform .2s; }

/* o selo de situação em cima da cabeça (no celular é ele que conta a situação) */
.posto-boneco { color: #9FB3A6; }
.posto-boneco[data-estado="trabalhando"] { color: #52B788; }
.posto-boneco[data-estado="aguardando_voce"] { color: #E2763E; }
.posto-boneco[data-estado="concluiu"] { color: #D4A373; }
.posto-boneco[data-estado="problema"] { color: #E05252; }
.posto-boneco[data-estado="desligado"], .posto-boneco[data-estado="sem_ia"] { color: #6B776F; }
.selo-ponto { fill: currentColor; stroke: #10291E; stroke-width: 1.6; }
.selo-escala { transform-box: fill-box; transform-origin: center; }
.selo-onda { fill: none; stroke: currentColor; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.posto-boneco[data-estado="trabalhando"] .selo-onda,
.posto-boneco[data-estado="aguardando_voce"] .selo-onda { animation: ce-onda 1.6s ease-out infinite; }

/* os fios: enquanto um colega trabalha num pedido de outro */
.fio { fill: none; stroke: #A8E6CF; stroke-width: 2.2; stroke-dasharray: 1.5 7; stroke-linecap: round; opacity: .8; animation: ce-fio .8s linear infinite; }
/* o recado voando (uma tabuinha) */
.voo-rastro { fill: none; stroke: #D4A373; stroke-width: 1.6; stroke-dasharray: 3 5; opacity: .75; transition: opacity .9s; }
.voo-rastro.volta { stroke: #52B788; }
.voo-rastro.some { opacity: 0; }
.voo-tabua rect { fill: #E3C08F; stroke: #8B5E34; stroke-width: 1.1; }
.voo-tabua line { stroke: #8B5E34; stroke-width: .8; }
.voo-brilho { fill: #FFE2B8; opacity: .5; filter: url(#es-brilho); }
.voo-tabua.volta rect { fill: #A8E6CF; stroke: #2D6A4F; }
.voo-tabua.volta line { stroke: #2D6A4F; }

/* quem anda pela sede (o boneco em pé, js/escritorio.js `andante`): a cadeira fica vazia enquanto ele anda */
.posto-boneco.fora .bn-pessoa, .posto-boneco.fora > .selo-estado { visibility: hidden; }
.ator .an { transform-box: fill-box; transform-origin: 50% 100%; }
.ator.levantando .an { animation: ce-levanta .3s ease-out; }   /* só ao levantar (mudar a ordem do desenho não repete) */
.ator .an-perna, .ator .an-braco, .ator .an-cabeca { transform-box: fill-box; }
.ator .an-perna { transform-origin: 50% 0; }
.ator .an-braco { transform-origin: 50% 8%; }
.ator .an-cabeca { transform-origin: 50% 100%; }
.ator .an-frente { transform: translateX(1.4px); }   /* o rosto um tico para o lado de onde ele olha */
.ator .an-costas, .ator .an-tabua { display: none; }
.ator.costas .an-frente { display: none; }
.ator.costas .an-costas { display: inline; }
.ator.carregando:not(.costas) .an-tabua { display: inline; }
.ator.andando .an-perna.e { animation: ce-passo .56s ease-in-out infinite; }
.ator.andando .an-perna.d { animation: ce-passo .56s ease-in-out -.28s infinite; }
.ator.andando .an-braco.e { animation: ce-balanca .56s ease-in-out infinite; }
.ator.andando .an-braco.d { animation: ce-balanca .56s ease-in-out -.28s infinite; }
.ator.andando .an-sobe { animation: ce-passada .28s ease-in-out infinite; }
.ator.carregando .an-braco.e { animation: none; transform: rotate(-10deg); }   /* os dois braços segurando a tábua */
.ator.carregando .an-braco.d { animation: none; transform: rotate(10deg); }
.ator.falando .an-braco.d { animation: ce-gesto .9s ease-in-out infinite; }
.ator.ouvindo .an-cabeca, .posto-boneco.ouvindo .bn-cabeca { animation: ce-concorda 1.1s ease-in-out infinite; }
.posto-boneco.falando:not(.ator) .bn-cabeca { animation: ce-cabeca 1.3s ease-in-out infinite; }
/* ao vivo: quem está livre na mesa respira e olha em volta, cada um no seu tempo; em pé e parado, também */
.posto-boneco:not(.ator)[data-estado="disponivel"] .bn-corpo,
.posto-boneco:not(.ator)[data-estado="concluiu"] .bn-corpo { animation: ce-respira 3.8s ease-in-out var(--atraso, 0s) infinite; }
.posto-boneco:not(.ator)[data-estado="disponivel"]:not(.ouvindo):not(.falando) .bn-cabeca,
.posto-boneco:not(.ator)[data-estado="concluiu"]:not(.ouvindo):not(.falando) .bn-cabeca { animation: ce-olha 9s ease-in-out var(--atraso, 0s) infinite; }
.ator:not(.andando) .an-sobe { animation: ce-respira 3.2s ease-in-out infinite; }
.posto-boneco[data-agente="financeiro"] { --atraso: -1.4s; }
.posto-boneco[data-agente="atendimento"] { --atraso: -5.2s; }
.posto-boneco[data-agente="instagram"] { --atraso: -2.6s; }
.posto-boneco[data-agente="comercial"] { --atraso: -7.1s; }
.posto-boneco[data-agente="suporte"] { --atraso: -3.9s; }
.posto-boneco[data-agente="monitoramento"] { --atraso: -6.3s; }

/* os crachás (HTML, por cima do desenho) */
.cracha {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 5px 10px 6px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .96); color: #1B4332; text-align: left; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28); --cor: #9FB3A6;
  transition: transform .2s, box-shadow .2s;
}
.cracha::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; background: inherit; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.cracha:hover, .cracha:focus-visible { transform: translate(-50%, calc(-100% - 2px)); box-shadow: 0 10px 22px rgba(0, 0, 0, .34); outline: none; }
.cracha:focus-visible { box-shadow: 0 0 0 3px #A8E6CF, 0 10px 22px rgba(0, 0, 0, .34); }
.cracha-nome { font-size: 12.5px; line-height: 1.2; }
.cracha-nome b { font-weight: 800; }
.cracha-nome small { font-size: 10.5px; font-weight: 700; color: #58677C; margin-left: 3px; }
.cracha-estado { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; color: #3E5248; }
.cracha-estado i { width: 7px; height: 7px; border-radius: 50%; background: var(--cor); }
.cracha-estado em { font-style: normal; }
.cracha[data-estado="trabalhando"] { --cor: #2D9E66; }
.cracha[data-estado="trabalhando"] .cracha-estado i { animation: ce-pisca 1s steps(2) infinite; }
.cracha[data-estado="aguardando_voce"] { --cor: #E2763E; box-shadow: 0 0 0 2px #E2763E, 0 6px 16px rgba(0, 0, 0, .28); }
.cracha[data-estado="aguardando_voce"] .cracha-estado { color: #A84B1B; }
.cracha[data-estado="concluiu"] { --cor: #B5814C; }
.cracha[data-estado="problema"] { --cor: #CE3A3A; }
.cracha[data-estado="problema"] .cracha-estado { color: #B02F2F; }
.cracha[data-estado="desligado"], .cracha[data-estado="sem_ia"] { --cor: #8A978F; background: rgba(232, 238, 234, .92); }
.cracha.chegou { animation: ce-chegou .6s ease-out; }

/* os balões de conversa */
.balao {
  position: absolute; transform: translate(-50%, calc(-100% - 46px)); z-index: 4;
  width: max-content; max-width: 230px; padding: 7px 11px; border-radius: 12px;
  background: #fff; color: #1B4332; font-size: 12px; font-weight: 600; line-height: 1.38;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3); border-left: 3px solid var(--cor, #52B788);
  animation: ce-balao .28s ease-out; transition: opacity .35s, transform .35s;
}
.balao.some { opacity: 0; transform: translate(-50%, calc(-100% - 54px)); }
.balao-delegou, .balao-consultou { --cor: #D4A373; }
.balao-entregou { --cor: #2D9E66; }
.balao-consulta { --cor: #A8E6CF; }
.balao-aprovacao { --cor: #E2763E; }
.balao-erro { --cor: #CE3A3A; }
/* o balão só com desenho (o passeio de quem está livre: não diz nada, não inventa trabalho) */
.balao.balao-icone {
  --sobe: calc(-100% - 46px);
  padding: 5px 8px; border-left: 0; border-radius: 14px; color: #2D6A4F;
  transform: translate(-50%, var(--sobe)); animation: ce-icone .3s cubic-bezier(.2, .9, .3, 1.25);
}
.balao.balao-icone.some { transform: translate(-50%, var(--sobe)) scale(.7); }
.balao-icone::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.balao-icone svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.balao-icone svg circle { fill: currentColor; stroke: none; }


@media (max-width: 759px) {
  .cracha, .balao { display: none; }
  .balao.balao-icone { display: block; --sobe: calc(-100% - 8px); padding: 3px 5px; border-radius: 10px; }
  .balao-icone svg { width: 13px; height: 13px; }
  .selo-escala { transform: translate(0, -7px) scale(2.3); }
  .ce-palco-cartao { padding: 40px 6px 8px; border-radius: 20px; }
  .ce-legenda { display: none; }
}

/* ---------------------------------------------------------------- a equipe (fichinhas debaixo da sede) */
.ce-equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.ce-membro {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 3px 10px; align-items: center;
  padding: 10px 12px; border-radius: 16px; border: 1px solid var(--linha); background: var(--papel);
  color: var(--tinta); text-align: left; cursor: pointer; box-shadow: var(--sombra-1); --cor: #9FB3A6;
}
.ce-membro:hover { border-color: rgba(45, 106, 79, .45); }
.ce-membro .retrato { grid-row: span 3; width: 44px; height: 48px; }
.ce-membro b { font-size: 14px; font-weight: 800; line-height: 1.15; }
.ce-membro small { font-size: 11.5px; color: var(--tinta2); font-weight: 600; line-height: 1.2; }
.ce-membro .ce-estado { font-size: 11.5px; }
.ce-membro p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; color: var(--tinta2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 759px) {
  .ce-equipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -4px; padding-inline: 4px; }
  .ce-membro { flex: 0 0 210px; scroll-snap-align: start; }
}

/* a situação escrita (ponto + palavra), igual em todo lugar */
.ce-estado { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--tinta2); white-space: nowrap; }
.ce-estado i { width: 8px; height: 8px; border-radius: 50%; background: var(--cor, #9FB3A6); flex: none; }
[data-estado="trabalhando"] { --cor: #2D9E66; }
[data-estado="aguardando_voce"] { --cor: #E2763E; }
[data-estado="concluiu"] { --cor: #B5814C; }
[data-estado="problema"] { --cor: #CE3A3A; }
[data-estado="desligado"], [data-estado="sem_ia"] { --cor: #8A978F; }
.ce-estado[data-estado="trabalhando"] i { animation: ce-pisca 1s steps(2) infinite; }
.ce-estado[data-estado="aguardando_voce"] { color: #B4541F; }

/* ---------------------------------------------------------------- o pedido ao Diretor */
.ce-diretor {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; align-items: start;
  padding: 14px 16px; border-radius: 22px; background: var(--papel); border: 1px solid var(--linha); box-shadow: var(--sombra-cartao);
}
.ce-diretor > .retrato { width: 56px; height: 61px; }
.ce-diretor label { display: block; font-size: 13px; font-weight: 800; margin: 2px 0 7px; }
.ce-diretor label small { font-weight: 600; color: var(--tinta2); }
.ce-campo-envio { display: flex; gap: 8px; align-items: flex-end; }
.ce-campo-envio textarea {
  flex: 1; min-width: 0; resize: none; min-height: 46px; max-height: 160px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--campo-borda); background: var(--campo-fundo); color: var(--tinta); font: 500 15px/1.4 var(--fonte);
}
.ce-campo-envio textarea:focus { outline: none; border-color: var(--ce-verde2); box-shadow: 0 0 0 3px rgba(45, 106, 79, .18); }
.ce-sugestoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.ce-sugestoes button {
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--linha); background: var(--papel2); color: var(--tinta);
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.ce-sugestoes button:hover { border-color: var(--ce-verde2); }
.ce-erro { margin: 8px 0 0; padding: 8px 11px; border-radius: 10px; background: rgba(206, 58, 58, .08); color: var(--vermelho); font-size: 13px; font-weight: 600; line-height: 1.4; }
@media (max-width: 759px) {
  .ce-sede { gap: 12px; }
  .ce-equipe { order: 1; }
  .ce-diretor { order: 2; grid-template-columns: 1fr; padding: 12px; }
  .ce-diretor > .retrato { display: none; }
}

/* ---------------------------------------------------------------- botões */
.ce-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linha);
  background: var(--papel); color: var(--tinta); font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none;
}
.ce-btn svg { width: 18px; height: 18px; }
.ce-btn:hover { border-color: var(--ce-verde2); }
.ce-btn:disabled { opacity: .55; cursor: default; }
.ce-btn.forte { background: var(--ce-verde2); border-color: var(--ce-verde2); color: #fff; }
.ce-btn.forte:hover { background: var(--ce-verde); }
.ce-btn.perigo { color: var(--vermelho); }
.ce-btn.pequeno { min-height: 36px; padding: 0 13px; font-size: 13px; }
.ce-link { background: none; border: 0; padding: 0; color: var(--madeira-escura); font-weight: 800; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- a coluna do lado */
.ce-lado { background: var(--papel); border: 1px solid var(--linha); border-radius: 22px; box-shadow: var(--sombra-cartao); min-width: 0; overflow: hidden; }
.ce-abas { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--linha); background: var(--papel); }
.ce-abas button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; border: 0; border-radius: 12px; background: none; color: var(--tinta2); font-weight: 800; font-size: 13.5px; cursor: pointer;
}
.ce-abas button[aria-selected="true"] { background: var(--papel2); color: var(--tinta); }
.ce-abas button svg { width: 17px; height: 17px; flex: none; }
.ce-abas .ce-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ce-laranja); color: #212529; font-size: 11.5px; display: grid; place-items: center; }
.ce-abas .ce-n.zero { background: var(--papel2); color: var(--tinta2); }
.ce-lado-corpo { padding: 12px; display: grid; gap: 10px; align-content: start; }
.ce-vazio { padding: 22px 12px; text-align: center; color: var(--tinta2); font-size: 14px; line-height: 1.5; }
.ce-vazio svg { width: 30px; height: 30px; color: var(--ce-madeira); margin-bottom: 6px; }
.ce-vazio b { display: block; color: var(--tinta); margin-bottom: 3px; }
.ce-sub { margin: 10px 2px 0; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta3); }

/* os pedidos de aprovação */
.ce-pedido { border: 1px solid var(--linha); border-radius: 18px; padding: 12px 13px; background: var(--papel); display: grid; gap: 8px; }
.ce-pedido.pendente { border-color: rgba(226, 118, 62, .5); box-shadow: 0 0 0 3px rgba(226, 118, 62, .08); }
.ce-pedido-topo { display: flex; align-items: center; gap: 9px; }
.ce-pedido-topo .retrato { width: 34px; height: 37px; flex: none; }
.ce-pedido-topo b { display: block; font-size: 13.5px; font-weight: 800; }
.ce-pedido-topo small { display: block; font-size: 11.5px; color: var(--tinta2); font-weight: 600; }
.ce-pedido-topo time { margin-left: auto; font-size: 11.5px; color: var(--tinta3); font-weight: 700; white-space: nowrap; }
.ce-urgente { padding: 2px 8px; border-radius: 999px; background: var(--ce-laranja); color: #212529; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ce-pedido-acao { margin: 0; display: flex; align-items: flex-start; gap: 6px; line-height: 1.35; font-size: 12px; font-weight: 800; color: var(--madeira-escura); text-transform: uppercase; letter-spacing: .06em; }
.ce-pedido-acao svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.ce-pedido h4 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; }
.ce-pedido-texto { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--papel2); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow-y: auto; }
.ce-pedido-nota { margin: 0; display: flex; gap: 7px; font-size: 12.5px; line-height: 1.4; color: var(--tinta2); }
.ce-pedido-nota svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--ce-madeira-escura); }
.ce-pedido-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.ce-pedido-botoes .ce-btn { flex: 1 1 auto; }
.ce-recusa { display: grid; gap: 8px; }
.ce-recusa textarea { width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--campo-borda); background: var(--campo-fundo); color: var(--tinta); font: 500 14px/1.4 var(--fonte); }
.ce-decidido { font-size: 13px; line-height: 1.45; color: var(--tinta2); margin: 0; }
.ce-decidido b { color: var(--tinta); }
.ce-pedido.decidido { padding: 10px 12px; gap: 5px; background: var(--fundo); }
.ce-pedido.decidido h4 { font-size: 13.5px; }

/* o post do Instagram (27/11/2026): legenda que dá para mexer, as fotos que o dono escolhe e o Publicar em 2 passos */
.ce-rotulo { margin: 2px 0 -2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 800; color: var(--tinta); }
.ce-rotulo small { font-size: 11.5px; font-weight: 600; color: var(--tinta3); }
.ce-pedido-legenda { width: 100%; min-height: 132px; max-height: 320px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--campo-borda); background: var(--campo-fundo); color: var(--tinta); font: 500 14px/1.5 var(--fonte); }
.ce-pedido-legenda:focus, .ce-recusa textarea:focus { outline: 2px solid var(--ce-vivo); outline-offset: 1px; }
.ce-pedido-legenda:disabled { opacity: .7; }
.ce-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.ce-fotos figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--papel2); box-shadow: inset 0 0 0 1px var(--linha); }
.ce-fotos img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ce-fotos figure:first-child::after { content: 'capa'; position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.ce-foto-tirar { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .62); color: #fff; cursor: pointer; }
.ce-foto-tirar svg { width: 15px; height: 15px; }
.ce-foto-mais { aspect-ratio: 4 / 5; border: 1.5px dashed var(--campo-borda); border-radius: 10px; background: none; color: var(--ce-verde2); display: grid; place-content: center; justify-items: center; gap: 4px; padding: 6px; cursor: pointer; font: 800 11.5px/1.25 var(--fonte); text-align: center; }
.ce-foto-mais svg { width: 20px; height: 20px; }
.ce-foto-mais:hover { border-color: var(--ce-verde2); }
.ce-foto-preparando { margin: 0; cursor: default; color: var(--tinta2); }
.ce-foto-preparando i, .ce-publicando i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--linha); border-top-color: var(--ce-verde2); animation: ce-gira .8s linear infinite; }
.ce-pedido-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ce a.ce-link { font: inherit; }   /* o link do post igual aos botões-link (que herdam a letra pelo ".ce button") */
.ce-pedido-links:empty { display: none; }
.ce-pedido-erro { margin: 0; display: flex; gap: 7px; padding: 9px 11px; border-radius: 12px; background: rgba(206, 58, 58, .1); color: #B02F2F; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.ce-pedido-erro svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.ce-confirmar { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(226, 118, 62, .1); }
.ce-confirmar p { margin: 0; font-size: 13px; line-height: 1.45; }
.ce-publicando { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--tinta2); }
.ce-publicando i { flex: none; }
@keyframes ce-gira { to { transform: rotate(360deg); } }
.ce-integ-acoes { grid-column: 2 / -1; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ce-integ-acoes > span { flex: 1 1 100%; font-size: 12.5px; line-height: 1.4; color: var(--tinta2); }

/* a atividade (o que os agentes fizeram e falaram entre si) */
.ce-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.ce-ev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--linha); cursor: pointer; border-radius: 10px; }
.ce-ev:hover { background: var(--fundo); }
.ce-ev:last-child { border-bottom: 0; }
.ce-ev-rostos { display: flex; align-items: center; gap: 2px; }
.ce-ev-rostos .retrato { width: 28px; height: 31px; }
.ce-ev-rostos svg.seta { width: 14px; height: 14px; color: var(--tinta3); }
.ce-ev p { margin: 0; font-size: 13px; line-height: 1.4; }
.ce-ev .ce-ev-texto { color: var(--tinta2); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ce-ev time { font-size: 11px; color: var(--tinta3); font-weight: 700; white-space: nowrap; }
.ce-ev.tipo-erro p:first-child, .ce-ev.tipo-aviso p:first-child { color: var(--vermelho); }
.ce-ev.tipo-pediu_aprovacao p:first-child, .ce-ev.tipo-aguardando p:first-child { color: #B4541F; }
.ce-ev.novo { animation: ce-novo 1.6s ease-out; }

/* ---------------------------------------------------------------- a ficha do agente (gaveta) e as janelas */
.ce-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(16, 41, 30, .28); animation: ce-aparece .2s; }
.ce-ficha {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(480px, 100vw);
  display: flex; flex-direction: column; background: var(--papel); box-shadow: -18px 0 44px rgba(16, 41, 30, .25);
  animation: ce-entra .25s ease-out;
}
.ce-ficha-topo {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: center;
  padding: 18px 56px 14px 18px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #2D6A4F, var(--ce-verde) 55%, var(--ce-noite));
}
.ce-ficha-topo .retrato { grid-row: span 3; width: 64px; height: 70px; }
.ce-ficha-topo .retrato > circle:first-child { fill: rgba(255, 255, 255, .14); }
.ce-ficha-topo h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ce-ficha-topo small { font-size: 12.5px; font-weight: 700; color: var(--ce-madeira); }
.ce-ficha-topo .ce-estado { color: #E7F2EC; font-size: 12.5px; }
.ce-ficha-topo p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.ce-fechar {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: inherit; display: grid; place-items: center; cursor: pointer;
}
.ce-fechar svg { width: 20px; height: 20px; }
.ce-fechar:hover { background: rgba(255, 255, 255, .22); }
.ce-ficha-abas { display: flex; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--linha); overflow-x: auto; }
.ce-ficha-abas button { flex: 1; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--tinta2); font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.ce-ficha-abas button[aria-selected="true"] { background: var(--papel2); color: var(--tinta); }
.ce-ficha-corpo { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.ce-ficha-pe { border-top: 1px solid var(--linha); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--papel); }
.ce-modo { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--papel2); }
.ce-modo button { flex: 1; min-height: 34px; border: 0; border-radius: 9px; background: none; color: var(--tinta2); font-weight: 800; font-size: 12.5px; cursor: pointer; }
.ce-modo button[aria-pressed="true"] { background: var(--papel); color: var(--tinta); box-shadow: var(--sombra-1); }
.ce-nota { margin: 0; padding: 9px 11px; border-radius: 12px; background: rgba(212, 163, 115, .16); font-size: 12.5px; line-height: 1.45; color: var(--tinta); }

/* a conversa */
.ce-msgs { display: grid; gap: 10px; }
.ce-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.ce-msg .retrato { width: 30px; height: 33px; flex: none; }
.ce-msg-balao { padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: var(--papel2); font-size: 14px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.ce-msg.dono { justify-content: flex-end; }
.ce-msg.dono .ce-msg-balao { background: var(--ce-verde2); color: #fff; border-radius: 16px 16px 5px 16px; white-space: pre-wrap; max-width: 86%; }
.ce-msg-pe { display: flex; gap: 10px; align-items: center; margin-top: 5px; font-size: 11px; color: var(--tinta3); font-weight: 700; }
.ce-msg.cliente .ce-msg-balao { background: #DCF3E6; color: #10291E; }
.ce-digitando { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 5px; background: var(--papel2); }
.ce-digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--tinta3); animation: ce-ponto 1.2s infinite; }
.ce-digitando i:nth-child(2) { animation-delay: .15s; }
.ce-digitando i:nth-child(3) { animation-delay: .3s; }

/* o texto que o agente escreveu (negrito, listas, títulos, tabelas) */
.ce-md { font-size: 14px; line-height: 1.55; }
.ce-md > :first-child { margin-top: 0; }
.ce-md > :last-child { margin-bottom: 0; }
.ce-md p { margin: 0 0 8px; }
.ce-md h4 { margin: 12px 0 5px; font-size: 14.5px; font-weight: 800; }
.ce-md ul, .ce-md ol { margin: 0 0 8px; padding-left: 20px; }
.ce-md li { margin: 2px 0; }
.ce-md code { padding: 1px 5px; border-radius: 5px; background: rgba(var(--forte-rgb), .08); font-size: .92em; }
.ce-md hr { border: 0; border-top: 1px solid var(--linha); margin: 10px 0; }
.ce-md .ce-tabela { overflow-x: auto; margin: 0 0 8px; }
.ce-md table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.ce-md th, .ce-md td { padding: 5px 8px; border-bottom: 1px solid var(--linha); text-align: left; white-space: nowrap; }
.ce-md th { font-weight: 800; }

/* debaixo do pedido: o último pedido ao Diretor (andamento e resposta) */
.ce-resposta { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--fundo); border: 1px solid var(--linha); display: grid; gap: 8px; }
.ce-resposta-topo { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta3); }
.ce-resposta-pedido { margin: 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.ce-resposta-texto { max-height: 300px; overflow-y: auto; padding-right: 4px; }
.ce-ajudando-lista { display: flex; gap: 6px; flex-wrap: wrap; }
.ce-ajudando { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--linha); background: var(--papel); color: var(--tinta); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ce-ajudando .retrato { width: 24px; height: 26px; }
.ce-ajudando i { width: 7px; height: 7px; border-radius: 50%; background: var(--cor, #9FB3A6); }
.ce-ajudando[data-estado="trabalhando"] i { animation: ce-pisca 1s steps(2) infinite; }
.ce-msg-col { min-width: 0; }
.ce-msg.dono .ce-msg-pe { justify-content: flex-end; }
.ce-msg.dono > div { display: flex; flex-direction: column; align-items: flex-end; max-width: 86%; }
.ce-msg.dono .ce-msg-balao { max-width: 100%; }

/* tarefas e histórico */
.ce-lista { display: grid; gap: 8px; }
.ce-tarefa {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 11px 12px; border-radius: 14px;
  border: 1px solid var(--linha); background: var(--papel); text-align: left; color: var(--tinta); cursor: pointer;
}
.ce-tarefa:hover { border-color: rgba(45, 106, 79, .45); }
.ce-tarefa b { font-size: 13.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ce-tarefa small { grid-column: 1 / -1; font-size: 11.5px; color: var(--tinta2); font-weight: 600; }
.ce-selo { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; background: var(--papel2); color: var(--tinta2); }
.ce-selo.verde { background: rgba(45, 158, 102, .14); color: #1F7A4D; }
.ce-selo.laranja { background: rgba(226, 118, 62, .16); color: #A84B1B; }
.ce-selo.madeira { background: rgba(212, 163, 115, .22); color: #7A5230; }
.ce-selo.vermelho { background: rgba(206, 58, 58, .12); color: #B02F2F; }

/* permissões */
.ce-bloco { border: 1px solid var(--linha); border-radius: 16px; padding: 13px 14px; display: grid; gap: 10px; }
.ce-bloco h4 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ce-bloco > p { margin: 0; font-size: 12.5px; color: var(--tinta2); line-height: 1.45; }
.ce-linha-chave { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.ce-linha-chave b { font-size: 14px; font-weight: 700; }
.ce-linha-chave small { grid-column: 1; font-size: 12px; color: var(--tinta2); line-height: 1.4; }
.ce-chave { grid-row: span 2; position: relative; width: 48px; height: 28px; flex: none; }
.ce-chave input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ce-chave span { position: absolute; inset: 0; border-radius: 999px; background: var(--papel2); border: 1px solid var(--campo-borda); transition: background .2s; pointer-events: none; }
.ce-chave span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.ce-chave input:checked + span { background: var(--ce-verde2); border-color: var(--ce-verde2); }
.ce-chave input:checked + span::after { transform: translateX(20px); }
.ce-chave input:focus-visible + span { box-shadow: 0 0 0 3px rgba(45, 106, 79, .3); }
.ce-esforco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ce-esforco button { padding: 9px 6px; border-radius: 12px; border: 1px solid var(--linha); background: var(--papel); color: var(--tinta); font-weight: 800; font-size: 13px; cursor: pointer; }
.ce-esforco button[aria-pressed="true"] { border-color: var(--ce-verde2); background: rgba(45, 106, 79, .1); }
.ce-nome { display: flex; gap: 8px; }
.ce-nome input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--campo-borda); background: var(--campo-fundo); color: var(--tinta); font: 600 15px var(--fonte); }
.ce-travas { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ce-travas li { display: flex; gap: 8px; font-size: 13px; line-height: 1.4; }
.ce-travas svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--ce-verde2); }

/* a janela (tarefa, integrações, avisos) */
.ce-janela {
  position: fixed; z-index: 51; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; border-radius: 24px; background: var(--papel); box-shadow: var(--sombra-3);
  animation: ce-janela .22s ease-out;
}
.ce-janela-camada .ce-scrim { z-index: 50; }
.ce-janela-topo { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 60px 14px 18px; border-bottom: 1px solid var(--linha); }
.ce-janela-topo .retrato { width: 42px; height: 46px; flex: none; }
.ce-janela-topo h2 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; }
.ce-janela-topo small { display: block; font-size: 12.5px; color: var(--tinta2); font-weight: 600; }
.ce-janela-topo .ce-fechar { background: var(--papel2); color: var(--tinta); }
.ce-janela-corpo { overflow-y: auto; padding: 16px 18px 20px; display: grid; gap: 12px; align-content: start; }
.ce-janela-corpo h3 { margin: 6px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta3); }
.ce-citacao { margin: 0; padding: 11px 14px; border-left: 3px solid var(--ce-madeira); border-radius: 4px 12px 12px 4px; background: var(--papel2); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ce-ajudantes { display: grid; gap: 8px; }
.ce-ajudante { border: 1px solid var(--linha); border-radius: 14px; }
.ce-ajudante > summary { list-style: none; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; cursor: pointer; }
.ce-ajudante > summary::-webkit-details-marker { display: none; }
.ce-ajudante > summary .retrato { grid-row: span 2; width: 34px; height: 37px; }
.ce-ajudante > summary b { font-size: 13.5px; }
.ce-ajudante > summary small { grid-column: 2 / -1; font-size: 12px; color: var(--tinta2); overflow-wrap: anywhere; }
.ce-ajudante .ce-md { padding: 0 14px 12px; border-top: 1px dashed var(--linha); padding-top: 10px; }
.ce-passos { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.ce-passos li { position: relative; padding: 0 0 10px 20px; font-size: 13px; line-height: 1.4; color: var(--tinta2); overflow-wrap: anywhere; }
.ce-passos li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ce-madeira); }
.ce-passos li::after { content: ''; position: absolute; left: 5.5px; top: 15px; bottom: 0; width: 1px; background: var(--linha); }
.ce-passos li:last-child::after { display: none; }
.ce-passos b { color: var(--tinta); }
.ce-passos time { font-size: 11px; color: var(--tinta3); font-weight: 700; margin-right: 6px; }
.ce-uso { margin: 0; font-size: 12px; color: var(--tinta3); line-height: 1.45; }

.ce-integracoes { display: grid; gap: 10px; }
.ce-integ { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 3px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--linha); border-radius: 16px; }
.ce-integ > span:first-child { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--papel2); color: var(--ce-verde2); }
.ce-integ > span:first-child svg { width: 22px; height: 22px; }
.ce-integ b { font-size: 14.5px; }
.ce-integ p { grid-column: 2 / -1; margin: 0; font-size: 13px; line-height: 1.5; color: var(--tinta2); }
.ce-integ .ce-selo { align-self: center; }

.ce-avisos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* a entrada (sem login, sem permissão) */
.ce-entrada { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px 16px; }
.ce-entrada-cartao {
  width: min(520px, 100%); padding: 28px 24px 24px; border-radius: 28px; text-align: center; color: #fff;
  background:
    radial-gradient(rgba(168, 230, 207, .08) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 50% 20%, #24533F, var(--ce-noite));
  box-shadow: 0 24px 60px rgba(16, 41, 30, .3);
}
.ce-entrada-cartao .ce-rostos { display: flex; justify-content: center; margin-bottom: 14px; }
.ce-entrada-cartao .ce-rostos .retrato { width: 52px; height: 57px; margin: 0 -5px; }
.ce-entrada-cartao .ce-rostos .retrato > circle:first-child { fill: #E8EEEA; stroke: var(--ce-noite); stroke-width: 2; }
.ce-entrada-cartao h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ce-entrada-cartao p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.ce-entrada-cartao .ce-btn { background: #fff; color: var(--ce-verde); border-color: #fff; }
.ce-entrada-cartao .ce-erro { text-align: left; background: rgba(255, 255, 255, .12); color: #FFD3CC; }
.ce-carregando { padding: 60px 20px; text-align: center; color: var(--tinta2); }

/* o retrato (busto) */
.retrato { display: block; overflow: hidden; }   /* o corpo do boneco não sai da caixa: vira um busto */
.retrato.so-busto > ellipse, .retrato .so-busto > ellipse, .retrato .so-busto > rect, .retrato .bn-mao { display: none; }

@media (max-width: 759px) {
  .ce-topo { padding: 8px 12px; gap: 10px; min-height: 56px; }
  .ce-marca small { display: none; }
  .ce-marca b { font-size: 14.5px; }
  .ce-resumo { display: none; }
  .ce-topo-btn { padding: 0 11px; }
  .ce-topo-btn .txt { display: none; }
  .ce-grade { padding: 12px 12px 40px; gap: 14px; }
  .ce-faixas { padding: 12px 12px 0; }
  .ce-ficha { width: 100vw; }
  .ce-janela { top: auto; bottom: 0; left: 0; transform: none; width: 100vw; max-height: 92vh; border-radius: 22px 22px 0 0; animation: ce-sobe .25s ease-out; }
  .ce-janela-corpo { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- movimento */
@keyframes ce-pulsa { 0% { box-shadow: 0 0 0 0 rgba(82, 183, 136, .55); } 70% { box-shadow: 0 0 0 9px rgba(82, 183, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(82, 183, 136, 0); } }
@keyframes ce-tela { 50% { opacity: .7; } }
@keyframes ce-pisca { 50% { opacity: .25; } }
@keyframes ce-digita { to { transform: translateY(2.2px); } }
@keyframes ce-cabeca { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes ce-acena { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes ce-onda { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes ce-fio { to { stroke-dashoffset: -8.5; } }
@keyframes ce-chegou { 0% { transform: translate(-50%, -100%) scale(1); } 40% { transform: translate(-50%, -100%) scale(1.12); } 100% { transform: translate(-50%, -100%) scale(1); } }
@keyframes ce-balao { from { opacity: 0; transform: translate(-50%, calc(-100% - 38px)) scale(.94); } }
@keyframes ce-novo { from { background: rgba(212, 163, 115, .28); } }
@keyframes ce-aparece { from { opacity: 0; } }
@keyframes ce-entra { from { transform: translateX(40px); opacity: 0; } }
@keyframes ce-janela { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } }
@keyframes ce-sobe { from { transform: translateY(40px); opacity: 0; } }
@keyframes ce-ponto { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ce-passo { 50% { transform: scaleY(.8); } }
@keyframes ce-balanca { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(-9deg); } }
@keyframes ce-passada { 50% { transform: translateY(-1.8px); } }
@keyframes ce-gesto { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-40deg); } }
@keyframes ce-concorda { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(1.8px); } }
@keyframes ce-levanta { from { transform: translateY(5px) scaleY(.9); } }
@keyframes ce-respira { 50% { transform: translateY(-1.3px); } }
@keyframes ce-olha { 0%, 55%, 100% { transform: rotate(0deg); } 62%, 74% { transform: rotate(-8deg); } 82%, 90% { transform: rotate(5deg); } }
@keyframes ce-icone { from { opacity: 0; transform: translate(-50%, var(--sobe)) scale(.6); } }
@media (prefers-reduced-motion: reduce) {
  .ce *, .ce *::before, .ce *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* o "publicando…" continua girando (devagar): sem ele, parece que travou */
  .ce .ce-publicando i, .ce .ce-foto-preparando i { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
}

/* ---------------------------------------------------------------- tema escuro: preto SÓ NA CENTRAL
   O dono pediu preto na parte dos agentes e mandou deixar o sistema na cor dele (27/11/2026): o tema escuro
   do sistema (base.css) continua verde-escuro e não se mexe daqui. Estas variáveis valem só dentro do .ce
   (a página da Central). O cartão fica um degrau acima do preto (ele não gosta de cartão escuro demais). O
   verde da marca continua nos botões, nos detalhes e na própria sede. */
[data-tema='escuro'] .ce {
  --fundo: #000;
  --papel: #1C1C1C;
  --papel2: #2E2E2E;
  --campo-fundo: #2E2E2E;
  --linha: #3A3A3A;
  --campo-borda: #6E6E6E;
  --sombra-cartao: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2px 10px rgba(0, 0, 0, .5);
}
[data-tema='escuro'] .ce-topo { background: #0A0A0A; box-shadow: 0 1px 0 #1F1F1F, 0 2px 14px rgba(0, 0, 0, .6); }
[data-tema='escuro'] .ce-palco-cartao {
  background:
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 50% 40%, #1A1A1A 0%, #0B0B0B 60%, #000 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
[data-tema='escuro'] .ce-ficha { box-shadow: -18px 0 44px rgba(0, 0, 0, .6), inset 1px 0 0 #222; }
[data-tema='escuro'] .ce-ficha-topo { background: radial-gradient(120% 140% at 0% 0%, #222, #0E0E0E 60%, #000); }
[data-tema='escuro'] .ce-scrim { background: rgba(0, 0, 0, .55); }
[data-tema='escuro'] .ce-entrada-cartao {
  background:
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 50% 20%, #1C1C1C, #000);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .6);
}
[data-tema='escuro'] .ce-entrada-cartao .ce-rostos .retrato > circle:first-child { stroke: #000; }
/* no preto, os textos coloridos precisam ser mais claros para ler */
[data-tema='escuro'] .ce-selo.verde { color: #74D3A4; }
[data-tema='escuro'] .ce-selo.laranja { color: #F5A77C; }
[data-tema='escuro'] .ce-selo.madeira { color: #DDB892; }
[data-tema='escuro'] .ce-selo.vermelho { color: #FF8F8F; }
[data-tema='escuro'] .ce-pedido-erro { background: rgba(206, 58, 58, .18); color: #FF8F8F; }
[data-tema='escuro'] .ce-confirmar { background: rgba(226, 118, 62, .16); }
[data-tema='escuro'] .ce-foto-mais { color: #74D3A4; }
[data-tema='escuro'] .ce-estado[data-estado="aguardando_voce"] { color: #F5A77C; }
