/* O portal do parceiro (2.29.0): o workspace do cliente, na identidade da Vertech. Tela escura, o laranja só como luz (o foco, o botão
   principal, a área atual), relevo e sombra no lugar de linha. Pensado primeiro para o celular: a navegação fica numa barra no pé, e
   nada rola para o lado. Nenhuma peça é a do navegador. */
:root {
  color-scheme: dark;
  --chao: #060607; --tela: #0d0d0f; --painel: #151517; --camada: #1c1c1f; --camada-2: #232327; --poco: #0a0a0b;
  --fio: rgba(255,255,255,.07); --fio-2: rgba(255,255,255,.13);
  --texto: #f3f2ef; --texto-2: #a9a6a0; --texto-3: #75726c;
  --laranja: #ff6a13; --laranja-texto: #ff8a3d; --ok: #34d399; --erro: #f87171; --aviso: #fbbf24;
  --f-t: "Space Grotesk", system-ui, sans-serif; --f-c: "DM Sans", system-ui, sans-serif; --f-m: "JetBrains Mono", ui-monospace, monospace;
  --relevo: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.6), 0 18px 44px rgba(0,0,0,.45);
  --relevo-baixo: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.3);
  --fundo-raso: inset 0 1px 2px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.05);
}
* { box-sizing: border-box; }
html { background: var(--chao); }
body { margin: 0; min-height: 100dvh; background: var(--chao); color: var(--texto); font: 400 16px/1.5 var(--f-c); -webkit-font-smoothing: antialiased; }
body.com-camada { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: left; }
h1, h2, h3, p, ul, ol { margin: 0; } ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 2px; }
.mono { font: 500 11px/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); }
.ico { display: inline-grid; width: 20px; height: 20px; flex: none; } .ico svg { width: 100%; height: 100%; display: block; }
.carrega { padding: 60px 24px; text-align: center; color: var(--texto-3); }
.lead { font-size: 16px; line-height: 1.5; color: var(--texto-2); } .lead b { font-weight: 500; color: var(--texto); }
.miudo { font-size: 12.5px; line-height: 1.5; color: var(--texto-3); }
.elo { display: inline; font-weight: 600; color: var(--laranja-texto); text-decoration: underline; text-decoration-color: rgba(255,138,61,.4); text-underline-offset: 3px; }

/* ---------- a entrada: o convite e o login ---------- */
body:not([data-tela="workspace"])::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 360px; pointer-events: none; background: radial-gradient(60% 100% at 50% 0%, rgba(255,106,19,.14), transparent 70%), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: auto, 18px 18px; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.entrada { position: relative; display: flex; flex-direction: column; min-height: 100dvh; width: 100%; max-width: 500px; margin-inline: auto; padding-inline: 18px; }
.entrada main { flex: 1; }
.topo { padding-block: 30px 22px; } .logo { display: block; height: 30px; width: auto; }
.pe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 20px max(22px, env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--texto-3); } .pe .elo { color: var(--texto-2); text-decoration-color: var(--fio-2); font-weight: 500; }
.cartao { display: flex; flex-direction: column; gap: 16px; border-radius: 18px; background: linear-gradient(180deg, var(--camada), var(--painel)); box-shadow: var(--relevo); padding: 28px 24px 24px; }
.cartao h1 { font: 600 clamp(24px, 6.2vw, 30px)/1.12 var(--f-t); letter-spacing: -.025em; text-wrap: balance; }
.cartao h1 b { font-weight: 600; background: linear-gradient(100deg, #ffc470, #ff7a1f 50%, #ff4a0a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cartao.centro { text-align: center; align-items: center; padding-block: 40px 30px; }
.campo { display: flex; flex-direction: column; gap: 7px; } .campo label { font-size: 13.5px; font-weight: 600; color: var(--texto-2); }
.campo input { width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 11px; background: var(--poco); box-shadow: var(--fundo-raso); font-size: 16px; font-weight: 500; outline: none; transition: box-shadow .14s ease; }
.campo input::placeholder { color: var(--texto-3); font-weight: 400; } .campo input:focus-visible { box-shadow: 0 0 0 2px var(--laranja), inset 0 1px 2px rgba(0,0,0,.65); }
.com-olho { position: relative; } .com-olho input { padding-right: 50px; }
.olho { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: var(--texto-3); } .olho[aria-pressed="true"] { color: var(--laranja-texto); background: var(--camada-2); }
/* a barra de força: quatro traços que acendem; a cor acompanha a força */
.forca-linha { display: flex; align-items: center; gap: 12px; margin-top: -4px; }
.forca { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; } .forca i { height: 5px; border-radius: 3px; background: var(--poco); box-shadow: var(--fundo-raso); transition: background .18s ease; }
.forca[data-n="1"] i:nth-child(-n+1) { background: var(--erro); box-shadow: none; } .forca[data-n="2"] i:nth-child(-n+2) { background: var(--aviso); box-shadow: none; }
.forca[data-n="3"] i:nth-child(-n+3) { background: #a3e635; box-shadow: none; } .forca[data-n="4"] i { background: var(--ok); box-shadow: none; }
.forca-rot { min-width: 82px; text-align: right; font: 500 11px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }
.regras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 13px 14px; border-radius: 12px; background: var(--poco); box-shadow: var(--fundo-raso); }
.regras li { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.3; color: var(--texto-3); transition: color .14s ease; }
.regras .marca { flex: none; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--texto-3); transition: background .14s ease, box-shadow .14s ease; }
.regras li.ok { color: var(--texto); } .regras li.ok .marca { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052e1c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.3 2.6 2.6L12 5.4'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: none; }
.dica { margin-top: -8px; font-size: 12.5px; color: var(--texto-3); } .dica.achou { color: var(--ok); font-weight: 500; }
.aviso { padding: 12px 14px; border-radius: 11px; background: #2a1212; font-size: 13.5px; font-weight: 600; color: #fecaca; }
.bom { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; background: #0d2a1f; font-size: 13.5px; font-weight: 600; color: #a7f3d0; } .bom .ico { width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 20px; border-radius: 12px; font: 600 15.5px/1 var(--f-t); white-space: nowrap; background: var(--camada-2); box-shadow: var(--relevo-baixo); }
.btn .ico { width: 17px; height: 17px; } .btn.cheio { width: 100%; }
.btn.principal { background: linear-gradient(180deg, #ff8a3d, #ff6a13 55%, #e85605); color: #1a0b02; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.5), 0 10px 26px rgba(255,106,19,.28); }
.btn.principal:active { transform: translateY(1px); } .btn.principal:disabled { background: var(--camada-2); color: var(--texto-3); box-shadow: var(--relevo-baixo); cursor: default; }

/* ---------- o documento dos termos e o visor de imagem, por cima da página ---------- */
#camada { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); }
.fundo { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.folha, .visor { position: relative; display: flex; flex-direction: column; width: min(720px, 100%); max-height: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.folha { background: #f6f4ef; color: #1b1a17; } .visor { width: min(980px, 100%); background: var(--painel); }
.folha-topo { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; background: var(--painel); box-shadow: 0 1px 0 var(--fio); } .folha-topo .acoes { display: flex; gap: 8px; }
.nome-do-arquivo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14.5px/1.2 var(--f-t); }
.redondo { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--camada-2); box-shadow: var(--relevo-baixo); color: var(--texto); } .redondo .ico { width: 18px; height: 18px; }
.folha-miolo { flex: 1; overflow-y: auto; padding: 34px clamp(22px, 6vw, 56px) 30px; font-family: Georgia, "Times New Roman", serif; outline: none; }
.folha-miolo h2 { font: 700 24px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.01em; } .folha-miolo .versao { margin: 6px 0 22px; font: 400 12.5px/1.4 var(--f-c); color: #6e6a62; }
.folha-miolo h3 { margin: 24px 0 8px; font: 700 15.5px/1.3 var(--f-c); } .folha-miolo p { margin-bottom: 10px; font-size: 15.5px; line-height: 1.65; color: #2c2a26; }
.folha-pe { flex: none; display: flex; justify-content: flex-end; padding: 12px 18px; background: #ebe8e1; box-shadow: 0 -1px 0 rgba(0,0,0,.08); } .folha-pe .btn { min-height: 44px; }
.visor-miolo { display: grid; place-items: center; min-height: 220px; padding: 14px; background: var(--poco); overflow: auto; } .visor-miolo img { display: block; max-width: 100%; max-height: 74dvh; border-radius: 6px; }
.torrada { position: fixed; right: 18px; bottom: 18px; z-index: 30; max-width: min(360px, calc(100vw - 36px)); padding: 12px 16px; border-radius: 12px; background: var(--camada-2); box-shadow: var(--relevo); font-size: 14px; }

/* ---------- o workspace ---------- */
.espaco { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.lado { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 22px; padding: 26px 16px 18px; background: var(--tela); box-shadow: 1px 0 0 var(--fio); }
.lado .logo { align-self: flex-start; width: auto; height: 28px; margin-left: 8px; }
.quem { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; background: var(--painel); box-shadow: var(--relevo-baixo); min-width: 0; }
.quem span { min-width: 0; } .quem b { display: block; font: 600 14.5px/1.25 var(--f-t); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .quem small { display: block; font-size: 12.5px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-do-cliente { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--camada-2); } .logo-do-cliente.letras { display: grid; place-items: center; background: var(--laranja); color: #1a0b02; font: 700 14px/1 var(--f-t); }
.nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--texto-2); }
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--texto); } .nav-item[aria-current="page"] { background: var(--camada-2); box-shadow: var(--relevo-baixo); color: var(--texto); } .nav-item[aria-current="page"] .ico { color: var(--laranja-texto); }
.nav-item.sair { margin-top: auto; }
.barra { display: none; }
.miolo { min-width: 0; width: 100%; max-width: 1080px; padding: 40px clamp(20px, 4vw, 48px) 60px; }
.saudacao { display: grid; gap: 10px; margin-bottom: 28px; } .saudacao h1 { font: 600 clamp(28px, 4vw, 40px)/1.08 var(--f-t); letter-spacing: -.03em; } .saudacao .lead { max-width: 56ch; }
.titulo { margin-bottom: 22px; font: 600 28px/1.1 var(--f-t); letter-spacing: -.025em; }
.atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.atalho { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: linear-gradient(180deg, var(--camada), var(--painel)); box-shadow: var(--relevo-baixo); transition: transform .12s ease; }
.atalho:hover { transform: translateY(-1px); } .atalho > .ico:first-child { width: 22px; height: 22px; color: var(--laranja-texto); } .atalho > .ico:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--texto-3); }
.atalho span { min-width: 0; } .atalho b { display: block; font: 600 16px/1.25 var(--f-t); } .atalho small { display: block; margin-top: 2px; font-size: 13px; color: var(--texto-3); }
.vazio { padding: 34px 24px; border-radius: 14px; background: var(--poco); box-shadow: var(--fundo-raso); text-align: center; } .vazio b { display: block; font: 600 16px/1.3 var(--f-t); } .vazio p { max-width: 46ch; margin: 6px auto 0; font-size: 14px; color: var(--texto-3); }
/* os arquivos, em cartões com a prévia em cima (como no Drive) */
.arquivos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.arquivo { display: flex; flex-direction: column; min-width: 0; border-radius: 14px; background: var(--painel); box-shadow: var(--relevo-baixo); overflow: hidden; transition: transform .12s ease; } .arquivo:hover { transform: translateY(-2px); }
.previa { display: grid; place-items: center; align-content: center; gap: 8px; height: 150px; margin: 8px 8px 0; border-radius: 9px; background: var(--poco) center / cover no-repeat; box-shadow: var(--fundo-raso); color: var(--texto-3); } .previa .ico { width: 34px; height: 34px; } .previa b { font: 500 11px/1 var(--f-m); letter-spacing: .12em; }
.previa.foto { box-shadow: none; }
.rodape { display: flex; align-items: center; gap: 10px; padding: 12px; min-width: 0; }
.tipo { flex: none; min-width: 38px; padding: 4px 6px; border-radius: 5px; background: #3a2a1c; color: #ffb37a; font: 600 9.5px/1.2 var(--f-m); font-style: normal; letter-spacing: .06em; text-align: center; }
.rodape .txt { min-width: 0; } .rodape b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rodape small { display: block; font-size: 12px; color: var(--texto-3); }
.painel { display: grid; gap: 14px; justify-items: start; padding: 24px; border-radius: 16px; background: linear-gradient(180deg, var(--camada), var(--painel)); box-shadow: var(--relevo-baixo); }
.painel h2 { font: 600 22px/1.2 var(--f-t); letter-spacing: -.02em; } .painel .mono { color: var(--laranja-texto); } .painel .btn { min-height: 46px; }
.trilho { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: 6px; }
.trilho li { position: relative; padding: 16px 12px 0 0; border-top: 2px solid var(--fio-2); } .trilho li.feito { border-color: var(--ok); }
.trilho i { position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--painel); box-shadow: inset 0 0 0 2px var(--texto-3); } .trilho li.feito i { background: var(--ok); box-shadow: none; }
.trilho b { display: block; font: 600 14.5px/1.25 var(--f-t); } .trilho small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--texto-3); }
.parcelas { display: grid; gap: 8px; }
.parcelas li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--painel); box-shadow: var(--relevo-baixo); }
.parcelas .txt { flex: 1; min-width: 0; } .parcelas b { display: block; font: 600 15px/1.25 var(--f-t); } .parcelas small { display: block; font-size: 12.5px; color: var(--texto-3); }
.valor { font: 500 14.5px/1 var(--f-m); white-space: nowrap; }
.selo { flex: none; padding: 5px 9px; border-radius: 6px; font: 600 10.5px/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.selo.paga { background: #0d2a1f; color: #6ee7b7; } .selo.aberta { background: var(--camada-2); color: var(--texto-2); } .selo.vencida { background: #2a1212; color: #fca5a5; }

@media (max-width: 820px) {
  .espaco { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .lado { position: static; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; box-shadow: 0 1px 0 var(--fio); }
  .lado .logo { align-self: center; height: 22px; margin: 0; } .lado .nav { display: none; }
  .quem { margin-left: auto; padding: 6px 10px 6px 6px; gap: 9px; max-width: 58%; } .quem small { display: none; } .logo-do-cliente { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
  .nav-item.sair { width: auto; margin: 0; padding: 9px; } .nav-item.sair span:last-child { display: none; }
  .miolo { padding: 26px 16px 40px; }
  .barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); background: rgba(13,13,15,.96); box-shadow: 0 -1px 0 var(--fio); }
  .barra .nav-item { flex: 1; min-width: 0; flex-direction: column; gap: 4px; padding: 7px 2px; font-size: 10.5px; text-align: center; } .barra .nav-item span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .barra .nav-item[aria-current="page"] { background: none; box-shadow: none; color: var(--laranja-texto); }
  .arquivos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .previa { height: 112px; }
  .trilho { grid-template-columns: minmax(0, 1fr); } .trilho li { border-top: 0; border-left: 2px solid var(--fio-2); padding: 0 0 18px 18px; } .trilho i { left: -6px; top: 3px; }
  .parcelas li { flex-wrap: wrap; gap: 8px 12px; } .parcelas .txt { flex-basis: 100%; }
  .regras { grid-template-columns: minmax(0, 1fr); } .cartao { padding: 24px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
