:root {
  --fundo: #f4f3ef;
  --papel: #ffffff;
  --tinta: #1d1d1b;
  --suave: #6b6a65;
  --linha: #e3e1da;
  --marca: #d9442b;
  --aprovado: #1f8a55;
  --aprovado-bg: #e3f3ea;
  --ajuste: #c7781a;
  --ajuste-bg: #fbefdc;
  --novo: #2f63d6;
  --novo-bg: #e5ecfc;
  --cinza-bg: #ecebe6;
  --raio: 12px;
  --sombra: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--fundo); color: var(--tinta); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

/* topo */
.topo {
  display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  background: var(--tinta); color: #fff; position: sticky; top: 0; z-index: 20;
}
.marca { font-weight: 800; letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.marca i { width: 22px; height: 22px; border-radius: 6px; background: var(--marca); display: inline-block; }
.topo .proj { opacity: .75; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo .espaco { flex: 1; }
.topo .quem { font-size: 13px; opacity: .8; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 5px 10px; border-radius: 99px; }

.demo { background: #fff6d6; color: #6b5300; text-align: center; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid #f0e2a6; }

.pagina { max-width: 1240px; margin: 0 auto; padding: 24px 28px 80px; }

/* selos */
.selo { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.selo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-aprovado { color: var(--aprovado); background: var(--aprovado-bg); }
.s-ajuste { color: var(--ajuste); background: var(--ajuste-bg); }
.s-novo, .s-revisar { color: var(--novo); background: var(--novo-bg); }
.s-producao, .s-aguardando { color: var(--suave); background: var(--cinza-bg); }

/* lista de projetos */
h1 { font-size: 26px; margin: 8px 0 20px; letter-spacing: -.01em; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cartao { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; text-decoration: none; display: block; transition: transform .15s; }
.cartao:hover { transform: translateY(-2px); }
.cartao .capa { aspect-ratio: 16/9; background: var(--cinza-bg) center/cover no-repeat; }
.cartao .corpo { padding: 14px 16px 16px; }
.cartao .cliente { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); }
.cartao h2 { font-size: 17px; margin: 4px 0 10px; }
.barra { height: 6px; background: var(--cinza-bg); border-radius: 99px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--aprovado); border-radius: 99px; }
.linha-info { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--suave); margin-top: 8px; gap: 8px; }

/* cabeçalho do projeto */
.cab { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.cab .cliente { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); }
.cab h1 { margin: 2px 0 0; }
.chamada {
  background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 16px 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 18px;
}
.chamada .txt { flex: 1; min-width: 240px; }
.chamada .txt b { font-size: 16px; }
.chamada .txt div { color: var(--suave); font-size: 13.5px; margin-top: 2px; }
.chamada .prog { width: 220px; }
.chamada .prog small { color: var(--suave); font-size: 12.5px; display: block; margin-top: 5px; }

.btn { border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; background: var(--tinta); color: #fff; }
.btn.claro { background: var(--cinza-bg); color: var(--tinta); }
.btn.verde { background: var(--aprovado); }
.btn.laranja { background: var(--ajuste); }
.btn.contorno { background: none; color: var(--tinta); border: 1.5px solid var(--linha); }
.btn.mini { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* abas */
.abas { display: flex; gap: 4px; background: var(--cinza-bg); padding: 4px; border-radius: 10px; width: fit-content; margin-bottom: 16px; }
.abas button { border: 0; background: none; padding: 7px 16px; border-radius: 7px; font-weight: 600; color: var(--suave); }
.abas button.ativa { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* faixa de blocos */
.faixa { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.mini-bloco {
  flex: 0 0 132px; border: 2px solid transparent; border-radius: 10px; background: var(--papel); padding: 0;
  text-align: left; overflow: hidden; scroll-snap-align: start; box-shadow: var(--sombra); position: relative;
}
.mini-bloco.atual { border-color: var(--tinta); }
.mini-bloco .img { aspect-ratio: 16/9; background: var(--cinza-bg) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--suave); font-size: 12px; }
.mini-bloco .rot { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: 12.5px; font-weight: 600; }
.mini-bloco .ponto { width: 9px; height: 9px; border-radius: 50%; }
.mini-bloco.inativo { opacity: .55; }
.p-aprovado { background: var(--aprovado); }
.p-ajuste { background: var(--ajuste); }
.p-novo { background: var(--novo); }
.p-producao, .p-aguardando { background: #bdbbb3; }
.legenda { display: flex; gap: 16px; font-size: 12.5px; color: var(--suave); flex-wrap: wrap; margin: 2px 0 18px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* revisão do bloco */
.revisao { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.quadro { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.player { position: relative; background: #000; aspect-ratio: 16/9; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player .vazio { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ccc; flex-direction: column; gap: 8px; background: #111 center/cover no-repeat; }
.player .vazio span { background: rgba(0,0,0,.6); padding: 6px 14px; border-radius: 99px; font-size: 14px; }
.lado-a-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #000; }
.lado-a-lado figure { margin: 0; position: relative; }
.lado-a-lado video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.lado-a-lado figcaption { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 99px; }

/* linha do tempo com marcas */
.tempo { padding: 12px 16px 4px; }
.trilho { position: relative; height: 28px; cursor: pointer; }
.trilho .base { position: absolute; left: 0; right: 0; top: 12px; height: 4px; background: var(--cinza-bg); border-radius: 99px; }
.trilho .feito { position: absolute; left: 0; top: 12px; height: 4px; background: var(--tinta); border-radius: 99px; }
.trilho .pino { position: absolute; top: 3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.trilho .pino.antigo { background: #bdbbb3; }
.trilho .pino.meu { background: var(--ajuste); }
.tempo .dica { font-size: 12px; color: var(--suave); display: flex; justify-content: space-between; }
.controles { display: flex; gap: 8px; padding: 10px 16px 14px; align-items: center; flex-wrap: wrap; }
.controles .nav { margin-left: auto; display: flex; gap: 6px; }

.painel { display: flex; flex-direction: column; gap: 14px; }
.cartao-p { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px 18px; }
.cartao-p h3 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); font-weight: 600; }
.bloco-tit { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.bloco-tit b { font-size: 18px; }
.fala { font-size: 15.5px; line-height: 1.5; margin: 0; }
.fala small { display: block; color: var(--suave); font-size: 12.5px; margin-top: 6px; }
.acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acoes .btn { padding: 12px; }
textarea { width: 100%; min-height: 84px; resize: vertical; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; font: inherit; margin: 10px 0 8px; }
textarea:focus { outline: none; border-color: var(--ajuste); }
.segundo { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--suave); flex-wrap: wrap; }
.pilula { background: var(--ajuste-bg); color: var(--ajuste); font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 0; font-size: 13px; }
.marcado { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.marcado.aprovado { background: var(--aprovado-bg); color: #145c39; }
.marcado.ajuste { background: var(--ajuste-bg); color: #7a4708; }
.marcado .linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.marcado p { margin: 6px 0 0; color: var(--tinta); }
.historia { border-left: 3px solid var(--linha); padding: 2px 0 2px 12px; margin-top: 10px; font-size: 13.5px; }
.historia .de { color: var(--suave); font-size: 12px; }
.historia .resp { margin-top: 8px; color: var(--aprovado); }
.downloads { display: flex; flex-direction: column; gap: 8px; }
.dl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--linha); border-radius: 10px; text-decoration: none; }
.dl:hover { border-color: var(--tinta); }
.dl .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--cinza-bg); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.dl .t { flex: 1; min-width: 0; }
.dl .t b { display: block; font-size: 14px; }
.dl .t small { color: var(--suave); font-size: 12.5px; }
.dl.off { opacity: .5; pointer-events: none; }
.bloqueado { font-size: 13px; color: var(--suave); }

/* seção de entregas */
.secao { margin-top: 28px; }
.secao h2 { font-size: 18px; margin: 0 0 12px; }
.grade-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.grade-dl .dl { background: var(--papel); }
.final { background: var(--tinta); color: #fff; border-radius: var(--raio); padding: 22px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.final .txt { flex: 1; min-width: 240px; }
.final .txt div { opacity: .7; font-size: 14px; margin-top: 4px; }
.final.ok { background: var(--aprovado); }

/* janelas */
dialog { border: 0; border-radius: 14px; padding: 22px 24px; width: min(420px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,20,18,.45); }
dialog h3 { margin: 0 0 6px; }
dialog p { color: var(--suave); margin: 0 0 14px; font-size: 14px; }
dialog input { width: 100%; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; font: inherit; margin-bottom: 14px; }
dialog .fim { display: flex; justify-content: flex-end; gap: 8px; }
.aviso { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.aviso.ver { opacity: 1; }

@media (max-width: 900px) {
  .revisao { grid-template-columns: 1fr; }
  .pagina { padding: 16px 14px 90px; }
  .topo { padding: 12px 14px; }
  .chamada .prog { width: 100%; }
  .lado-a-lado { grid-template-columns: 1fr; }
  .mini-bloco { flex-basis: 108px; }
  .barra-fixa { position: fixed; left: 0; right: 0; bottom: 0; background: var(--papel); padding: 10px 14px; box-shadow: 0 -4px 16px rgba(0,0,0,.08); z-index: 15; }
}
