@font-face { font-family: "Montserrat"; src: url("/fonte/Montserrat.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --pri: #1D4ED8; --marinho: #0B1E3D; --ceu: #2E9BF0; --fundo: #F4F6FA; --texto: #2F3640; --leve: #5f6b7a; --borda: #dde3ee;
  --ok: #2f7d4f; --okf: #e6f4ec; --nao: #a3283c; --naof: #fbe5e9; --alerta: #8a5a00; --alertaf: #fdf1d8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 16px/1.45 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
main { max-width: 680px; margin: 0 auto; padding: 12px 14px 24px; }
a { color: var(--pri); }
h1 { font-size: 1.45rem; margin: 8px 0 4px; line-height: 1.2; }
h2 { font-size: 1.05rem; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
h2 small { font-weight: 400; color: var(--leve); font-size: .8rem; }
.leve { color: var(--leve); font-size: .88rem; }
.centro { text-align: center; }

.topo {
  position: sticky; top: 0; z-index: 5; background: var(--marinho); color: #fff;
  display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
}
.topo .marca { font-weight: 700; font-size: 1.05rem; }
.topo .sub { font-size: .8rem; opacity: .8; }
.topo .sair { color: #fff; font-size: .85rem; opacity: .85; }

.abas {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; background: #fff; border-top: 1px solid var(--borda);
  display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: env(safe-area-inset-bottom);
}
.abas a { text-decoration: none; color: var(--leve); font-size: .64rem; text-align: center; padding: 8px 2px 9px; }
.abas a span { display: block; font-size: 1.2rem; line-height: 1.3; }
.abas a.on { color: var(--pri); font-weight: 600; }

.cartao { display: block; background: #fff; border: 1px solid var(--borda); border-radius: 14px; padding: 14px; margin: 12px 0; }
a.cartao { text-decoration: none; color: inherit; }

.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.numeros div { background: var(--fundo); border-radius: 10px; padding: 10px; }
.numeros b { display: block; font-size: 1.3rem; }
.numeros span { font-size: .8rem; color: var(--leve); }
.numeros em { display: block; font-style: normal; font-size: .8rem; color: var(--leve); }

.funil { list-style: none; margin: 0; padding: 0; }
.funil li { display: grid; grid-template-columns: 1fr auto 3.5em; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--borda); }
.funil li:last-child { border: 0; }
.funil em { font-style: normal; color: var(--leve); font-size: .8rem; text-align: right; }

.linha { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 6px 0; }
.linha img, .linha .ph { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; background: var(--borda); }
.linha .ph { display: grid; place-items: center; color: var(--pri); font-size: 1.4rem; }
.linha div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.linha span { font-size: .9rem; }
.linha.simples { border-bottom: 1px dashed var(--borda); padding: 8px 0; }
.linha.simples:last-child { border: 0; }
.selo { font-style: normal; font-size: .75rem; padding: 2px 8px; border-radius: 99px; align-self: flex-start; background: var(--borda); }
.selo.ok { background: var(--okf); color: var(--ok); }
.selo.nao { background: var(--naof); color: var(--nao); }
.selo.alerta { background: var(--alertaf); color: var(--alerta); }

.aviso { display: block; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--borda); font-size: .92rem; text-decoration: none; color: inherit; }
.aviso.ok { background: var(--okf); border-color: transparent; color: var(--ok); }
.aviso.nao { background: var(--naof); border-color: transparent; color: var(--nao); }
.aviso.alerta { background: var(--alertaf); border-color: transparent; color: var(--alerta); }
.aviso.link { font-weight: 600; }

.meta { display: grid; grid-template-columns: 9em 1fr 3em; gap: 8px; align-items: center; margin: 8px 0; font-size: .9rem; }
.meta b { text-align: right; }
meter { width: 100%; height: 12px; }

label { display: block; font-size: .88rem; margin: 10px 0; color: var(--leve); }
input, textarea {
  display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--texto);
  border: 1px solid var(--borda); border-radius: 10px; padding: 10px; background: #fff;
}
input[type=checkbox] { display: inline; width: auto; margin: 0 8px 0 0; accent-color: var(--pri); transform: scale(1.2); }
input[type=file] { padding: 8px; background: var(--fundo); }
textarea { resize: vertical; }
label.chave { color: var(--texto); display: flex; align-items: center; font-size: .95rem; }
.rotulo { font-size: .88rem; color: var(--leve); margin: 10px 0 4px; }
.dias { display: flex; flex-wrap: wrap; gap: 6px; }
.dias label { margin: 0; }
.dias input { position: absolute; opacity: 0; }
.dias span { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--borda); color: var(--texto); }
.dias input:checked + span { background: var(--pri); color: #fff; border-color: var(--pri); }

.btn {
  display: inline-block; font: inherit; font-weight: 600; padding: 11px 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--pri); color: var(--pri); background: #fff; text-decoration: none; text-align: center;
}
.btn.principal { background: var(--pri); color: #fff; }
.btn.largo { width: 100%; }
.botoes { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.botoes .btn { flex: 1; }
.mini { font: inherit; border: 1px solid var(--borda); background: #fff; border-radius: 8px; width: 38px; height: 34px; color: var(--texto); }
.mini:disabled { opacity: .3; }

.galeria { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -14px; padding: 0 14px; }
.galeria img, .galeria video { width: 82%; max-width: 420px; flex: none; border-radius: 12px; scroll-snap-align: center; background: #000; }

.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grade figure { margin: 0; position: relative; aspect-ratio: 4 / 5; background: var(--borda); border-radius: 8px; overflow: hidden; }
.grade img { width: 100%; height: 100%; object-fit: cover; }
.grade .ph { display: grid; place-items: center; height: 100%; color: var(--pri); font-size: 1.4rem; }
.grade .usos { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 99px; }
.grade .tag { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 99px; }

.ordem { list-style: none; margin: 0; padding: 0; }
.ordem li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--borda); }
.ordem form { display: flex; gap: 6px; }

.historico { margin: 0; padding-left: 18px; font-size: .88rem; }
.saida, .ficha { white-space: pre-wrap; font-size: .8rem; background: var(--fundo); padding: 10px; border-radius: 8px; overflow-x: auto; }
details summary { cursor: pointer; font-weight: 600; }
.voltar { text-decoration: none; font-size: .9rem; }
.entrar { max-width: 380px; margin: 12vh auto 0; }

select { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--texto); border: 1px solid var(--borda); border-radius: 10px; padding: 10px; background: #fff; }
.escolher { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 290px; overflow-y: auto; padding: 2px; }
.escolher label { margin: 0; position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--borda); }
.escolher input { position: absolute; opacity: 0; }
.escolher img { width: 100%; height: 100%; object-fit: cover; display: block; }
.escolher .nenhuma { display: grid; place-items: center; height: 100%; font-size: .7rem; text-align: center; padding: 4px; color: var(--texto); }
.escolher input:checked + img, .escolher input:checked + .nenhuma { outline: 4px solid var(--pri); outline-offset: -4px; }
.escolher input:checked + .nenhuma { background: #fff; }
img.gerada { width: 100%; border-radius: 10px; display: block; margin-bottom: 8px; }
.botoes form { flex: 1; display: flex; }
.botoes form .btn { flex: 1; }
.btn.espaco { margin-top: 10px; }
.passos { margin: 0; padding-left: 20px; }
.passos li { margin: 4px 0; }
.salvar-prompt { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.salvar-prompt input { margin: 0; flex: 1; }
.prompt-salvo { border-bottom: 1px dashed var(--borda); padding: 8px 0; }
.prompt-salvo:last-child { border: 0; }
.prompt-salvo p { margin: 4px 0; }
[hidden] { display: none !important; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 8px 0; border-bottom: 1px dashed var(--borda); display: flex; gap: 10px; align-items: flex-start; }
.checklist li:last-child { border: 0; }
.checklist .marca { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--borda); color: var(--leve); }
.checklist .feito .marca { background: var(--okf); color: var(--ok); }
.checklist .feito span { color: var(--leve); text-decoration: line-through; }
.sessao { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--borda); }
.sessao:last-child { border: 0; }
.sessao b { font-size: 1.05rem; margin-right: 8px; }
.sessao .btn { padding: 7px 12px; font-size: .85rem; flex: none; }
.dia-titulo { font-weight: 700; margin: 14px 0 2px; text-transform: capitalize; }
.achado { border-left: 4px solid var(--alerta); padding: 6px 10px; margin: 8px 0; background: var(--alertaf); border-radius: 0 8px 8px 0; font-size: .9rem; }
.achado.bloqueia { border-color: var(--nao); background: var(--naof); }
.achado small { display: block; color: var(--leve); }
.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela td, .tabela th { text-align: left; padding: 8px 4px; border-bottom: 1px dashed var(--borda); }
.senha-nova { font: 1.3rem monospace; background: var(--okf); padding: 10px; border-radius: 8px; text-align: center; letter-spacing: 1px; }
.grade-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grade-posts a { position: relative; aspect-ratio: 4 / 5; background: var(--borda); border-radius: 8px; overflow: hidden; color: #fff; text-decoration: none; }
.grade-posts img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grade-posts span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-size: .72rem; padding: 14px 6px 5px; }
.faixa-admin { background: #fdf1d8; color: #8a5a00; text-align: center; font-size: .85rem; padding: 6px; }
.faixa-admin a { color: #8a5a00; font-weight: 600; }
.foto-perfil { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; margin: 8px 0; }
h2.espaco { margin-top: 22px; }
.logo-prev { max-width: 200px; max-height: 100px; display: block; margin: 8px 0; background: #fff; border: 1px solid var(--borda); border-radius: 8px; padding: 6px; }
.cores-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 10px; }
input[type=color] { height: 46px; padding: 4px; }
.livro { margin: 12px 0; }
.fonte-item { padding: 10px 12px; }
.fonte-cab { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.amostra { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--borda); margin: 6px 0; aspect-ratio: 4 / 1; object-fit: cover; background: #fff; }
.fonte-item .btn { padding: 8px 6px; font-size: .85rem; }
.filtros-fonte { margin-top: 10px; }

/* formatos (19/10) */
.rotulo { margin: 0 0 6px; font-weight: 600; }
.formatos { margin-bottom: 8px; }
.dica-formatos { padding-left: 18px; margin: 8px 0 12px; }
.dica-formatos li { margin-bottom: 4px; }
.galeria.alta img { max-width: 300px; width: 62%; }
.galeria video { max-width: 300px; width: 62%; aspect-ratio: 9 / 16; }
.roteiro { padding-left: 22px; margin: 0 0 10px; }
.roteiro li { margin-bottom: 10px; font-size: 1.02rem; }
.roteiro small { display: block; color: var(--leve); font-size: .82rem; }
.envio-video progress { width: 100%; height: 14px; margin: 8px 0 0; }

/* teleprompter */
body.tp { background: #000; color: #fff; padding: 0; overflow: hidden; height: 100vh; }
.tp-barra { position: fixed; top: 0; left: 0; right: 0; z-index: 3; display: flex; gap: 8px; align-items: center;
  padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(0,0,0,.85); }
.tp-barra button { background: #222; color: #fff; border: 1px solid #444; border-radius: 8px; min-width: 44px; height: 40px; font-size: 1.1rem; }
.tp-sair { color: #fff; margin-right: auto; text-decoration: none; }
.tp-vel { font-size: .85rem; opacity: .8; }
.tp-texto { height: 100vh; overflow-y: scroll; padding: 0 7vw; font-size: 2.1rem; line-height: 1.5; font-weight: 600; scrollbar-width: none; }
.tp-texto::-webkit-scrollbar { display: none; }
.tp-texto p { margin: 0 0 1.4em; }
.tp-texto.grande { font-size: 2.8rem; }
.tp-texto.espelho { transform: scaleX(-1); }
.tp-folga { height: 45vh; }
.tp-play { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 3; background: var(--pri); color: #fff; border: 0; border-radius: 99px; padding: 14px 30px; font-size: 1.1rem; font-weight: 700; }
