/* O sistema visual da Atos (v6), uma folha so para a home, o /entrar, a /conta
   e os textos legais. Sem efeitos: so cores solidas, cantos retos em tudo,
   botoes e campos de 36px. Times New Roman so nos titulos e na marca; Inter
   Tight no resto, servida daqui (a CSP das paginas da conta nao deixa
   carregar nada de outro site). */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fontes/inter-tight.woff2) format("woff2"); }

:root {
  --bg: #0b0a09;
  --chrome: #080707;
  --surface: #1a1917;
  --surface-hover: #211f1c;
  --surface-2: #121110;
  --line: #2c2a26;
  --line-soft: #23211e;
  --line-hover: #4a463f;
  --text: #ece8e1;
  --text-soft: #d6d0c6;
  --text-2: #c9c3b8;
  --silver: #b9bdc3;
  --nav: #8d9298;
  --nav-hover: #e4e7ea;
  --muted: #9a948a;
  --faint: #6e6961;
  --on-light: #121110;
  --success: #9fc79a;
  --success-line: #3d4a3a;
  --warning: #e0b77a;
  --danger: #e08e7a;
  --danger-line: #4a2f28;
  --serif: "Times New Roman", Times, "Liberation Serif", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; border-radius: 0; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
a:hover { color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text-soft); outline-offset: 2px; }
input:focus-visible, select:focus-visible { outline: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- topo e rodape ---------- */
.topo {
  position: sticky; top: 0; z-index: 10; height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px;
  padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--chrome);
}
.marca { flex: 1; font-family: var(--serif); font-size: 24px; text-decoration: none; }
.topo nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; font-weight: 500; }
.topo nav > a { color: var(--nav); text-decoration: none; }
.topo nav > a:hover { color: var(--nav-hover); }
.topo nav > a[aria-current], .topo nav > a.forte { color: var(--silver); }
/* O menu de conta (assets/menu-conta.js e a folha /marca/menu.css): o ultimo item do topo. */
.topo-conta { display: inline-flex; min-width: 0; }

.rodape {
  flex-shrink: 0; border-top: 1px solid var(--line); padding: 16px 28px; display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between; font-size: 12px; font-weight: 500; background: var(--chrome);
}
.rodape > span { font-family: var(--serif); font-size: 15px; color: var(--nav); }
.rodape a[aria-current] { color: var(--text); pointer-events: none; }
.rodape > div { display: flex; gap: 20px; align-items: center; }
.rodape a, .rodape summary { color: var(--muted); text-decoration: none; }
.rodape a:hover, .rodape summary:hover { color: var(--text); }
.rodape details { position: relative; }
.rodape summary { list-style: none; cursor: pointer; }
.rodape summary::-webkit-details-marker { display: none; }
.rodape details > div {
  position: absolute; right: 0; bottom: calc(100% + 12px); z-index: 5; display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
}
.rodape details > div a { color: var(--text-soft); }
.rodape details > div a:hover { color: #fff; }

/* ---------- componentes ---------- */
.btn {
  height: 36px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer; flex-shrink: 0;
}
.btn:hover { border-color: var(--line-hover); color: var(--text); }
.btn.primario { background: var(--text); border-color: var(--text); color: var(--on-light); font-weight: 600; }
.btn.primario:hover { background: #fff; border-color: #fff; color: var(--on-light); }
.btn.perigo { color: var(--danger); border-color: var(--danger-line); }
.btn.perigo:hover { border-color: var(--danger); color: var(--danger); }
.btn.p { height: 32px; padding: 0 12px; font-size: 12px; }
.btn.mini { height: 26px; padding: 0 8px; font-size: 11px; }
.btn.largo { width: 100%; }
.btn .seta, .btn .glifo { color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: progress; }
.selo {
  height: 32px; padding: 0 12px; display: inline-flex; align-items: center; flex-shrink: 0; font-size: 12px; font-weight: 500;
  color: var(--success); border: 1px solid var(--success-line); white-space: nowrap;
}
.selo.neutro { color: var(--muted); border-color: var(--line); }
.selo.perigo { color: var(--danger); border-color: var(--danger-line); }

.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo .topo-campo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rotulo { font-size: 12px; font-weight: 500; color: var(--muted); }
.campo input {
  height: 36px; width: 100%; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 14px; outline: none;
}
.campo input::placeholder { color: var(--faint); }
.campo input:focus { border-color: var(--faint); }
.campo.codigo input { height: 44px; font-size: 18px; letter-spacing: .45em; text-align: center; }
.dica { font-size: 12px; color: var(--faint); }
.erro { color: var(--danger); font-size: 13px; }
.erro:empty { display: none; }
.ok { color: var(--success); font-size: 13px; }
.ok:empty { display: none; }

.link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--muted); text-decoration: none; cursor: pointer; }
.link:hover { color: var(--text); }
.ou { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--faint); }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card { background: var(--surface); border: 1px solid var(--line); }
.titulo-secao { font-size: 12px; font-weight: 600; color: var(--silver); }
/* as guias: a unica coisa sublinhada */
.guias { display: flex; align-items: stretch; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.guias::-webkit-scrollbar { display: none; }
.guias a, .guias button {
  height: 42px; display: inline-flex; align-items: center; flex-shrink: 0; margin-bottom: -1px; padding: 0; background: none; border: 0;
  border-bottom: 1px solid transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.guias a:hover, .guias button:hover { color: var(--text); }
.guias [aria-current="page"], .guias [aria-selected="true"] { color: var(--text); border-bottom-color: var(--silver); }
.guias .sep { width: 1px; align-self: center; height: 16px; background: var(--line); flex-shrink: 0; }
.guias .fim { margin-left: auto; }
/* o filtro de opcoes (Todas / Pagas / Pendentes) */
.opcoes { display: flex; gap: 6px; flex-wrap: wrap; }
.opcoes button { height: 32px; padding: 0 12px; background: transparent; border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.opcoes button:hover { color: var(--text); border-color: var(--line-hover); }
.opcoes button[aria-pressed="true"] { background: var(--line); color: var(--text); }
/* um quadro com legenda */
.quadro { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.quadro img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); }
.quadro figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-family: var(--serif); font-size: 15px; color: var(--text-soft); }
.quadro figcaption span + span { font-style: italic; color: var(--silver); }
.logo { width: 32px; height: 32px; flex-shrink: 0; display: block; border: 1px solid var(--line); }
/* o aplicativo sem icone: a inicial do nome */
.logo.inicial { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 15px; line-height: 1; }
.nota { font-size: 12px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.nota a { color: var(--text-soft); }

/* ---------- /entrar ---------- */
main.entrar { flex: 1; display: flex; justify-content: center; align-items: center; gap: 80px; padding: 48px 28px; }
main.entrar .quadro { flex: 0 0 auto; width: min(380px, calc((100vh - 230px) * .8)); min-width: 260px; }
.coluna { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.pilha { display: flex; flex-direction: column; gap: 14px; }
.cabeca { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding-bottom: 12px; }
body.popup .cabeca { align-items: center; text-align: center; }
.cabeca h1 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; text-wrap: pretty; overflow-wrap: anywhere; }
.cabeca p { font-size: 13px; color: var(--silver); }
.cabeca p.longo { color: var(--muted); }
.cabeca p strong { color: var(--text); font-weight: 400; }
.form { display: flex; flex-direction: column; gap: 14px; }
.pe { font-size: 13px; color: var(--muted); text-align: center; }
.pe .link { font-size: 13px; }
.pe .link.forte { color: var(--text); border-bottom: 1px solid #4c5056; padding-bottom: 1px; }
.pe .link.forte:hover { border-color: var(--silver); }
/* o consentimento */
.linha { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.linha.app { padding: 14px 16px; }
.linha .logo { width: 36px; height: 36px; }
.linha .nome { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.linha .nome strong { font-size: 13px; font-weight: 500; }
.linha.app .nome strong { font-size: 14px; font-weight: 600; }
.linha .nome small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha.app .nome small { white-space: normal; }
.linha .link { font-weight: 500; white-space: nowrap; }
.escopos { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; }
.escopos .titulo-secao { padding-bottom: 6px; }
.escopos div { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 13px; line-height: 1.4; }
.escopos div span:first-child { color: var(--silver); }
.dois { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* popup: quando um aplicativo abre o /entrar */
body.popup .topo { position: static; padding: 0 20px; }
body.popup .topo nav, body.popup .rodape > span { display: none; }
body.popup main.entrar { align-items: flex-start; padding: 32px 20px; }
body.popup main.entrar .quadro { display: none; }
body.popup .rodape { padding: 16px 20px; justify-content: center; }
body.popup .rodape details > div { right: auto; left: 50%; transform: translateX(-50%); }

/* ---------- home ---------- */
body.home-pagina { overflow-x: clip; }
body.home-pagina .topo { position: fixed; left: 0; right: 0; z-index: 40; transition: none; }
body.home-pagina.cena-ativa .topo { opacity: 0; pointer-events: none; }
.cena { position: relative; height: 260vh; }
.cena-palco { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.cena-quadro { position: absolute; transform-origin: 0 0; will-change: transform; }
.cena-quadro .tela { position: absolute; inset: 0; background: url(/assets/quadros/pentecostes.jpg) center / cover no-repeat; }
.cena-quadro .vinheta { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .8) 100%); }
.cena-quadro .moldura { position: absolute; inset: 0; border: 1px solid var(--line); }
.cena-legenda { position: absolute; display: flex; justify-content: space-between; gap: 12px; font-family: var(--serif); font-size: 15px; color: var(--text-soft); }
.cena-legenda span + span { font-style: italic; color: var(--muted); }
.cena-titulo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; pointer-events: none; }
.cena-titulo .coroa-grande { width: 64px; height: 64px; background: url(/assets/coroa-branca.png) center / 64px no-repeat; }
.cena-titulo blockquote { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(560px, 86vw); text-align: center; }
.cena-titulo blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; color: var(--text); text-wrap: balance; }
.cena-titulo cite { font-style: normal; font-size: 12px; font-weight: 500; color: var(--silver); }
.cena-dica { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 500; color: var(--muted); }
.cena-texto { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cena-texto .lema { font-size: 12px; font-weight: 500; color: var(--silver); }
.cena-texto h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; }
.cena-texto h1 .resto { color: transparent; }
.cursor { display: inline-block; width: .4em; height: .9em; margin-left: 3px; margin-bottom: -.08em; background: var(--silver); animation: piscar 1s steps(1) infinite; }
@keyframes piscar { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.chamadas { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.chamadas .seta { color: var(--silver); }

main.home { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 28px; display: flex; flex-direction: column; }
.home > section { border-top: 1px solid var(--line); scroll-margin-top: 56px; }
.home h2.titulo-pagina { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; }
.home .descricao { font-size: 13px; color: var(--muted); }
#projetos { padding: 72px 0; }
#projetos header { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; }
.faixa { margin: 0 calc(50% - 50vw); padding: 0 28px; overflow: hidden; }
.faixa-trilho { display: flex; gap: 12px; width: max-content; will-change: transform; }
.projeto { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.projeto.vazio-faixa { background: var(--surface-2); border-color: var(--line-soft); }
.projeto .cab { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.inicial { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); font-family: var(--serif); font-size: 16px; }
.projeto .cab .nome { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.projeto .cab strong { font-size: 13px; font-weight: 600; }
.projeto .cab small { font-size: 12px; color: var(--faint); }
.projeto .cab .romano { margin-left: auto; font-family: var(--serif); font-size: 15px; color: var(--faint); }
.projeto p { flex: 1; padding: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.projeto .acoes { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.projeto .acoes .btn span { color: var(--muted); }
#indice { padding: 72px 0; display: flex; flex-direction: column; }
#indice .descricao { margin: 4px 0 20px; }
#indice h3 { padding-bottom: 8px; }
.indice a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; scroll-margin-top: 56px; }
.indice a:first-child { border-top: 0; }
.indice a:hover { background: var(--surface-hover); color: var(--text); }
.indice .n { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); font-family: var(--serif); font-size: 15px; }
.indice .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.indice .titulo { font-size: 14px; font-weight: 600; }
.indice .desc { font-size: 12px; color: var(--muted); }
.indice .fim { display: flex; align-items: center; gap: 12px; }
.indice .seta { font-size: 14px; color: var(--faint); }
.fundador { padding: 88px 0 104px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.fundador img { width: 72px; height: 72px; object-fit: cover; background: var(--surface); display: block; }
.fundador p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; max-width: 30ch; text-wrap: balance; }
.fundador span { font-size: 12px; font-weight: 500; color: var(--silver); }
.revela { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.revela.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revela { opacity: 1; transform: none; transition: none; }
  .cursor { display: none; }
}

/* ---------- /conta ---------- */
main.conta { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 40px 28px 80px; display: flex; flex-direction: column; }
.menu { flex: 1 1 180px; max-width: 220px; display: flex; flex-direction: column; gap: 20px; }
.menu .quem { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; min-width: 0; }
.menu .quem strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.menu .quem span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu nav { display: flex; flex-direction: column; gap: 2px; }
.menu nav > span { padding: 0 10px 6px; font-size: 11px; font-weight: 600; color: var(--faint); }
.menu nav a {
  height: 32px; padding: 0 10px; display: flex; align-items: center; border-left: 2px solid transparent; font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none;
}
.menu nav a:hover { color: var(--text); background: var(--surface); }
.menu nav a[aria-current="page"] { color: var(--text); background: var(--surface); border-left-color: var(--text); }
.menu .sair { padding: 0 12px; font-size: 13px; font-weight: 500; text-align: left; }
.secao { min-width: 0; display: flex; flex-direction: column; }
.secao h1 { padding-bottom: 4px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; }
.secao .guias { margin: 16px 0 8px; }
/* a faixa da Ultima Ceia, no Resumo */
.faixa-quadro { margin: 16px 0 8px; gap: 10px; }
.faixa-quadro .faixa-img { width: 100%; height: clamp(180px, 26vw, 240px); background: var(--surface) url(/assets/quadros/ultima-ceia.jpg) 50% 62% / 100% auto no-repeat; border: 1px solid var(--line); }
.faixa-quadro figcaption small { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
/* Faturamento: os filtros e a lista */
.filtros { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 10px 16px; }
.filtros .conta-n { color: var(--faint); }
.filtros-campos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seletor {
  height: 32px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 12px; font-weight: 500; outline: none;
}
.seletor:focus { border-color: var(--faint); }
select.seletor {
  padding-right: 28px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a948a'/%3E%3C/svg%3E") right 10px center no-repeat;
}
.seletor.busca { width: 120px; }
.seletor.busca::placeholder { color: var(--faint); }
.faturas { margin-top: 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.faturas > div { min-width: 480px; padding-bottom: 4px; }
.fatura { display: grid; grid-template-columns: minmax(0, 1fr) 120px 96px 120px; gap: 24px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.fatura.cab { padding: 10px 16px; border-top: 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; font-weight: 500; color: var(--faint); }
.fatura.cab + .fatura { border-top: 0; }
.fatura .valor { text-align: right; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fatura.cab .valor { font-size: 11px; }
.fatura-desc { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fatura-desc span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fatura-desc small { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fatura-sit { font-size: 13px; color: var(--muted); }
.fatura-sit.pendente { color: var(--warning); }
.fatura .docs { display: flex; gap: 6px; justify-content: flex-end; }
.faturas-vazio { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 24px 16px; font-size: 13px; color: var(--muted); }
.faturas-resumo { border-top: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 14px 16px; font-size: 13px; color: var(--muted); }
.faturas-resumo strong { font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.faturas-resumo .aviso { color: var(--warning); }
.filtros-vazio { margin-top: 24px; }
.secao .descricao { font-size: 13px; color: var(--muted); }
.secao h2.titulo-secao { padding: 24px 0 8px; }
.secao .nota { margin-top: 8px; color: var(--faint); }
.secao > .erro, .secao > .ok { margin-top: 12px; }
.dado { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 0 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
.dado:last-child { border-bottom: 0; }
.dado > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.dado .apagado { color: var(--muted); }
.dado form { display: flex; gap: 8px; align-items: center; }
.dado form input { height: 32px; flex: 1; min-width: 0; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; outline: none; }
.dado form input:focus { border-color: var(--faint); }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .nome { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.item .nome strong { font-size: 13px; font-weight: 600; }
.item .nome small { font-size: 12px; color: var(--muted); }
a.item { background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.item:hover { border-color: var(--line-hover); color: var(--text); }
.item .seta { color: var(--faint); }
.vazio { padding: 14px 16px; font-size: 13px; color: var(--muted); }
.vazio a { color: var(--text-soft); }
.excluir { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.excluir span { font-size: 13px; color: var(--muted); }
/* Dados */
.grade { padding: 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.grade .s1 { grid-column: span 1; } .grade .s2 { grid-column: span 2; } .grade .s3 { grid-column: span 3; } .grade .s4 { grid-column: span 4; }
.grade .tudo { grid-column: 1 / -1; }
.alternar { justify-self: start; display: flex; border: 1px solid var(--line); }
.alternar button { height: 30px; padding: 0 14px; white-space: nowrap; flex-shrink: 0; background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.alternar button[aria-pressed="true"] { background: var(--text); color: var(--on-light); }
.salvar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-top: 16px; flex-wrap: wrap; }
/* Assinaturas */
.assinatura-topo { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.assinatura-topo .logo { width: 40px; height: 40px; }
.assinatura-topo .nome { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.assinatura-topo .nome strong { font-size: 14px; font-weight: 600; }
.assinatura-topo .nome small { font-size: 12px; color: var(--muted); }
.colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-bottom: 1px solid var(--line); }
.colunas > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; font-size: 13px; }
.colunas > div + div { border-left: 1px solid var(--line); }
.botoes { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.botoes .direita { margin-left: auto; }
.confirmar { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 0; font-size: 13px; color: var(--muted); }
.confirmar .botoes { padding: 8px 0 14px; }
/* Faturamento */
.tabela { overflow-x: auto; overflow-y: hidden; }
.tabela > div { min-width: 720px; }
.tabela .tr { display: grid; grid-template-columns: 84px minmax(200px, 1fr) 88px 72px 112px; gap: 12px; align-items: center; min-height: 48px; padding: 0 16px; font-size: 13px; border-top: 1px solid var(--line); }
.tabela .th { min-height: 36px; border-top: 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.tabela .th + .tr { border-top: 0; }
.tabela .data { color: var(--muted); }
.tabela .desc { display: flex; flex-direction: column; gap: 2px; min-width: 0; white-space: nowrap; }
.tabela .desc small { font-size: 11px; color: var(--faint); }
.tabela .status { font-size: 11px; font-weight: 600; color: var(--success); }
.tabela .status.outro { color: var(--muted); }
.tabela .docs { display: flex; gap: 4px; }
.tabela .docs .sem { font-size: 11px; color: var(--faint); }
/* Carteira */
.cartao-salvo { display: flex; align-items: center; gap: 14px; padding: 16px; flex-wrap: wrap; }
.bandeira { width: 44px; height: 30px; flex-shrink: 0; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--text-soft); letter-spacing: .04em; text-transform: uppercase; }
.cartao-salvo .nome { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 160px; }
.cartao-salvo .nome strong { font-size: 14px; font-weight: 600; }
.cartao-salvo .nome small { font-size: 12px; color: var(--muted); }
/* modal */
.fundo-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: #080706; }
.modal { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.modal h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; }
.modal p { font-size: 13px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.modal .botoes { padding: 4px 0 0; justify-content: flex-end; }
.modal .btn { height: 34px; }

/* ---------- privacidade e termos ---------- */
main.texto { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 48px 28px 88px; display: flex; flex-direction: column; }
.texto h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; }
.texto .descricao { font-size: 13px; color: var(--muted); margin-top: 4px; }
.texto .guias { margin: 20px 0 8px; }
.texto .corpo { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.texto h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--silver); margin-top: 26px; }
.texto h2[id] { scroll-margin-top: 72px; }
.texto h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 6px; }
.texto .corpo a { color: var(--text); }
.texto p, .texto li { font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.texto strong { color: var(--text); font-weight: 600; }
.texto ul { padding-left: 20px; margin: 0; }
.texto li + li { margin-top: 8px; }
.texto code { font-size: 13px; }

@media (max-width: 640px) {
  .topo { padding: 0 16px; gap: 16px; }
  .topo nav { gap: 14px; }
  .topo nav > a:not(:last-child) { display: none; }
  .rodape { padding: 16px; }
  main.entrar { padding: 40px 16px; }
  main.entrar .quadro { display: none; }
  main.home, main.conta, main.texto { padding-left: 16px; padding-right: 16px; }
  .faixa { padding: 0 16px; }
  .menu { max-width: none; }
  .dado { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; }
  .dado > span:first-child { grid-column: 1 / -1; }
  .grade { grid-template-columns: 1fr 1fr; }
  .grade .s1, .grade .s2 { grid-column: span 1; }
  .grade .s3, .grade .s4 { grid-column: 1 / -1; }
}
.fatura .docs { flex-wrap: wrap; align-items: center; }
.fatura .docs .sem { font-size: 11px; color: var(--faint); }

/* Minha conta > Seguranca (assets/conta-seguranca.js) */
.seg-aviso { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 13px; color: var(--text-soft); }
.seg-fluxo { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--text-soft); }
.seg-fluxo:last-child { border-bottom: 0; }
.seg-fluxo strong { color: var(--text); }
.seg-qr { align-self: flex-start; padding: 8px; background: #fff; border: 1px solid var(--line); line-height: 0; }
.seg-qr svg { display: block; width: 200px; height: 200px; }
.seg-chave { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; letter-spacing: .08em; color: var(--text); overflow-wrap: anywhere; user-select: all; }
.seg-form { display: flex; flex-direction: column; gap: 12px; }
.seg-form .campo { max-width: 280px; }
.seg-form .campo input, .seg-nova .campo input { height: 40px; }
.seg-codigos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 32px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; color: var(--text); user-select: all; }
.botoes.sem-borda { padding: 0; }
.seg-nova { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.seg-nova .campo { flex: 1 1 220px; }
.seg-alerta { color: var(--warning) !important; }
.item .nome small.seg-alerta { white-space: normal; }
@media (max-width: 640px) {
  .seg-codigos { grid-template-columns: 1fr; }
  .seg-form .campo { max-width: none; }
  .item { flex-wrap: wrap; }
}/* O icone de um projeto do Portfolio (worker/portfolio.js) no lugar da inicial */
.projeto .cab img.inicial { object-fit: cover; padding: 0; }
