@font-face { font-family: Manrope; src: url(/fontes/Manrope-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fontes/Manrope-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fontes/Manrope-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fontes/Manrope-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Blisstwin; src: url(/fontes/Blisstwin.woff2) format("woff2"); font-display: swap; }

:root {
  --azul: #20458E;
  --navy: #0F2F6A;
  --dourado: #C9A96E;
  --dourado-claro: #E8D7B4;
  --fundo: #F6F4EF;
  --papel: #FFFFFF;
  --tinta: #1A2236;
  --suave: #5D6577;
  --linha: #E4E0D6;
  --feito: #2E7D5B;
  --andamento: #C9A96E;
  --pendente: #B8BDC8;
  --bloqueado: #B5483B;
  --sombra: 0 1px 2px rgba(15, 47, 106, .06), 0 8px 24px rgba(15, 47, 106, .06);
  --raio: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 400 15px/1.55 Manrope, system-ui, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: #EEF1F7; color: var(--navy); padding: 1px 5px; border-radius: 4px; word-break: break-word; }
button { font: inherit; }

.topo { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.topo-in { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { height: 30px; width: auto; }
.topo-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.ao-vivo { font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.ao-vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--feito); box-shadow: 0 0 0 0 rgba(46, 125, 91, .5); animation: pulso 2s infinite; }
.atualizado { font-size: 12px; color: var(--suave); }

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--azul) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, .25); box-shadow: 0 0 0 60px rgba(201, 169, 110, .04), 0 0 0 140px rgba(201, 169, 110, .03); pointer-events: none; }
.hero-in { max-width: 1080px; margin: 0 auto; padding: 44px 16px 40px; position: relative; z-index: 1; }
.kicker { margin: 0 0 10px; color: var(--dourado-claro); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.hero h1 { font-weight: 500; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.pct { font-family: Blisstwin, Manrope, serif; font-size: clamp(64px, 14vw, 112px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.pct-un { font-family: Blisstwin, Manrope, serif; font-size: clamp(32px, 6vw, 52px); color: var(--dourado); margin-left: -8px; }
.pct-txt { font-size: clamp(18px, 3vw, 24px); color: rgba(255, 255, 255, .85); }

.barra-geral { margin-top: 22px; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.barra-geral .enchimento { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--dourado) 0%, #E9CF97 50%, var(--dourado) 100%); background-size: 200% 100%; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); animation: brilho 3s linear infinite; }
.fases-mini { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 10px; }
.fases-mini span { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; position: relative; }
.fases-mini span b { position: absolute; inset: 0 auto 0 0; background: var(--dourado-claro); width: 0; transition: width 1.2s ease .4s; }
.fases-mini span.atual { outline: 1px solid var(--dourado); outline-offset: 1px; }
.numeros { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.numero { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 14px; min-width: 120px; }
.numero strong { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.numero span { font-size: 12px; color: rgba(255, 255, 255, .75); }

.bloco { max-width: 1080px; margin: 0 auto; padding: 40px 16px 0; }
.cab { margin-bottom: 16px; }
.cab h2 { font-size: 22px; color: var(--navy); font-weight: 700; }
.cab p { margin: 4px 0 0; color: var(--suave); font-size: 14px; }
.cartao { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; }
.cartao h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); margin-bottom: 12px; font-weight: 600; }

.agora-grade { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.trabalho { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linha); }
.trabalho:first-of-type { border-top: 0; padding-top: 0; }
.trabalho .ponto { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--andamento); animation: pulso-ouro 1.8s infinite; }
.trabalho strong { display: block; color: var(--tinta); font-weight: 600; }
.trabalho small { color: var(--suave); font-size: 13px; }
.vazio { color: var(--suave); margin: 0; }
.cartao h3.seguir { margin-top: 20px; }
.proximos { list-style: none; margin: 0; padding: 0; }
.proximos li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 8px 24px; border-top: 1px dashed var(--linha); font-size: 14px; color: var(--suave); position: relative; }
.proximos li::before { content: ""; position: absolute; left: 1px; top: 13px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--pendente); }
.proximos small { flex: none; font-size: 12px; }
.atividade ol { list-style: none; margin: 0; padding: 0; }
.atividade li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--linha); font-size: 13.5px; }
.atividade li:first-child { border-top: 0; }
.atividade time { color: var(--suave); font-size: 12px; padding-top: 1px; }
.atividade em { display: block; font-style: normal; color: var(--azul); font-size: 11.5px; }

.fases { list-style: none; margin: 0; padding: 0; position: relative; }
.fases::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--linha); }
.fase { position: relative; padding-left: 56px; margin-bottom: 12px; }
.fase .marco { position: absolute; left: 4px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--papel); color: var(--suave); border: 2px solid var(--linha); z-index: 1; }
.fase.concluida .marco { background: var(--feito); border-color: var(--feito); color: #fff; }
.fase.atual .marco { background: var(--azul); border-color: var(--dourado); color: #fff; box-shadow: 0 0 0 6px rgba(201, 169, 110, .22); }
.fase details { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.fase summary { list-style: none; cursor: pointer; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.fase summary::-webkit-details-marker { display: none; }
.fase summary h3 { font-size: 16px; color: var(--navy); font-weight: 700; }
.fase summary .estim { font-size: 12.5px; color: var(--suave); }
.fase summary .valor { grid-row: span 2; font-weight: 700; font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.fase .barra { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #EEEBE3; overflow: hidden; margin-top: 6px; }
.fase .barra b { display: block; height: 100%; width: 0; background: var(--azul); border-radius: inherit; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.fase.concluida .barra b { background: var(--feito); }
.fase.atual .barra b { background: linear-gradient(90deg, var(--azul), var(--dourado)); }
.fase .corpo { padding: 0 18px 16px; border-top: 1px solid var(--linha); }
.fase .corpo p { margin: 12px 0 6px; font-size: 13.5px; color: var(--suave); }
.fase .corpo p b { color: var(--tinta); font-weight: 600; }
.itens { list-style: none; margin: 8px 0 0; padding: 0; }
.itens li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 7px 0; font-size: 14px; }
.itens .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.itens .feito .ic { background: var(--feito); }
.itens .andamento .ic { background: var(--andamento); animation: pulso-ouro 1.8s infinite; }
.itens .pendente .ic { border: 2px solid var(--pendente); }
.itens .bloqueado .ic { background: var(--bloqueado); }
.itens .ic svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.itens .feito span:last-child { color: var(--tinta); }
.itens .pendente span:last-child { color: var(--suave); }
.itens small { display: block; color: var(--suave); font-size: 12.5px; }
.etiqueta { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
.etiqueta.andamento { background: #F5ECDB; color: #8A6A2E; }
.etiqueta.bloqueado { background: #F6E1DE; color: var(--bloqueado); }

.mudancas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mudanca { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px 18px; border-left: 3px solid var(--dourado); }
.mudanca .area { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dourado); }
.mudanca .antes { margin: 8px 0 4px; color: var(--suave); text-decoration: line-through; text-decoration-color: rgba(181, 72, 59, .55); font-size: 13.5px; }
.mudanca .depois { margin: 0; font-weight: 600; color: var(--navy); font-size: 14.5px; }
.mudanca .depois::before { content: "→ "; color: var(--dourado); }
.mudanca .motivo { margin: 8px 0 0; font-size: 12.5px; color: var(--suave); }

.pendencias { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pendencias li { background: var(--papel); border-radius: 12px; box-shadow: var(--sombra); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; font-size: 14px; }
.pendencias .quem { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #E7ECF6; color: var(--azul); }
.pendencias .quem.wesley { background: #F5ECDB; color: #8A6A2E; }
.pendencias small { display: block; color: var(--suave); font-size: 12px; }

.historico { list-style: none; margin: 0; padding: 0; }
.entrada { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); margin-bottom: 10px; }
.entrada summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.entrada summary::-webkit-details-marker { display: none; }
.entrada .data { font-weight: 700; color: var(--navy); font-size: 13px; font-variant-numeric: tabular-nums; }
.entrada .agente { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #E7ECF6; color: var(--azul); }
.entrada .agente.codex { background: #E5F1EA; color: var(--feito); }
.entrada .agente.chat { background: #F5ECDB; color: #8A6A2E; }
.entrada .branch { font-size: 13px; color: var(--suave); }
.entrada .resumo { flex-basis: 100%; font-size: 14px; color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entrada[open] .resumo { display: none; }
.entrada .corpo { padding: 0 18px 16px; }
.entrada dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 14px; }
.entrada dt { color: var(--suave); font-weight: 600; font-size: 12.5px; padding-top: 2px; }
.entrada dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.mais { margin: 6px auto 0; display: block; background: none; border: 1px solid var(--azul); color: var(--azul); border-radius: 99px; padding: 9px 20px; font-weight: 600; cursor: pointer; }
.mais:hover { background: var(--azul); color: #fff; }

.decisoes { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); }
.decisoes summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.decisoes summary::-webkit-details-marker { display: none; }
.decisoes summary h2 { font-size: 20px; color: var(--navy); }
.decisoes summary span { color: var(--suave); font-size: 13px; }
.tabela { overflow-x: auto; padding: 0 18px 16px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { text-align: left; font-size: 12px; color: var(--suave); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--linha); }
td { padding: 9px 10px; border-bottom: 1px solid var(--linha); vertical-align: top; }
td:first-child { white-space: nowrap; color: var(--suave); font-variant-numeric: tabular-nums; }

.rodape { max-width: 1080px; margin: 48px auto 0; padding: 20px 16px 40px; color: var(--suave); font-size: 13px; border-top: 1px solid var(--linha); }

.surgir { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.surgir.visivel { opacity: 1; transform: none; }

@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(46, 125, 91, .5); } 70% { box-shadow: 0 0 0 8px rgba(46, 125, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 125, 91, 0); } }
@keyframes pulso-ouro { 0% { box-shadow: 0 0 0 0 rgba(201, 169, 110, .6); } 70% { box-shadow: 0 0 0 9px rgba(201, 169, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); } }
@keyframes brilho { from { background-position: 200% 0; } to { background-position: 0 0; } }

@media (max-width: 760px) {
  .agora-grade, .mudancas, .pendencias { grid-template-columns: 1fr; }
  .fases::before { left: 15px; }
  .fase { padding-left: 42px; }
  .fase .marco { left: 0; width: 32px; height: 32px; font-size: 13px; }
  .entrada dl { grid-template-columns: 1fr; gap: 2px; }
  .entrada dd { margin-bottom: 8px; }
  .numero { min-width: 0; flex: 1 1 40%; }
  .topo-info .atualizado { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .surgir { opacity: 1; transform: none; }
}
