/* Fotedit · prévia ao vivo · direção C (escolhida pelo Daniel em 09/10/2026): o assistente num cartão central
   (como o WeTransfer) para Enviar e Baixar, e a grade com uma barra flutuante embaixo (como o Google Fotos) para
   Escolher. Claro e leve; uma cor de destaque só (o roxo), para a ação principal e para "escolhida".
   Contraste dos textos ≥ 4,5 (medido nas capturas). Sem fontes externas (a página só carrega do próprio PC). */
:root {
  --fundo-a: #f6eef0;
  --fundo-b: #e9eefb;
  --grade-fundo: #f5f5f8;
  --sup: #ffffff;
  --sup-2: #faf9fd;
  --texto: #1c1b22;
  --suave: #5f5d6e;      /* 6,3 no branco, 5,6 no fundo da grade */
  --linha: #e6e4ee;
  --destaque: #5a45d6;
  --destaque-escuro: #4a37bf;
  --destaque-claro: #eeeafd;
  --erro: #b42f25;
  --erro-fundo: #fdf1f0;
  --aviso-texto: #6b4e00;
  --aviso-fundo: #fff7e0;
  --aviso-linha: #f1df9f;
  --ok: #23824a;
  --raio: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; scroll-padding-bottom: 112px; }
html, body { margin: 0; }
body {
  color: var(--texto); min-height: 100vh;
  font: 15px/1.45 system-ui, "Segoe UI", -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 700px at 12% 0%, #fbe8e4 0%, transparent 60%), radial-gradient(1000px 800px at 100% 100%, #dfe6fb 0%, transparent 60%), linear-gradient(135deg, var(--fundo-a), var(--fundo-b));
  background-color: var(--fundo-a);
  background-attachment: fixed;
}
body.na-grade { background: var(--grade-fundo); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.oculto { display: none !important; }
.escondido { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: -10px; top: -10px; }
.nota { color: var(--suave); font-size: 13px; margin: 0 0 12px; }
kbd { font: 600 12px/1 system-ui, sans-serif; padding: 3px 6px; border: 1px solid var(--linha); border-bottom-width: 2px; border-radius: 5px; background: var(--sup); color: var(--suave); }
:focus-visible { outline: 2px solid var(--destaque); outline-offset: 2px; }

/* ---------- topo: leve, transparente; na grade, fixo e translúcido ---------- */
.topo { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
body.na-grade .topo { background: rgba(245, 245, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
body.no-comeco .topo { display: none; }
.marca { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.logo { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(from 200deg, #5a45d6, #c86dd7, #f0a37a, #5a45d6); position: relative; flex: none; }
.logo::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.marca.grande { font-size: 22px; justify-content: center; width: 100%; }
.marca.grande .logo { width: 32px; height: 32px; }
.marca.grande .logo::after { inset: 8px; }
.topo-casal { justify-self: end; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.casal { color: var(--suave); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.passos { display: flex; align-items: center; gap: 8px; }
.passo { border: 0; background: none; padding: 4px 2px; display: inline-flex; align-items: center; gap: 7px; color: var(--suave); font-size: 13.5px; }
.passo i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }
.passo.feito i { background: currentColor; }
.passo.atual { color: var(--texto); font-weight: 600; }
.passo.atual i { border-color: var(--destaque); background: var(--destaque); box-shadow: 0 0 0 3px var(--destaque-claro); }
.passo:disabled { cursor: default; }
.passo:not(:disabled):not(.atual):hover { color: var(--texto); }
.traco { width: 28px; height: 1.5px; background: #d6d3e2; border-radius: 2px; }

/* ---------- botões e links ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--linha); background: var(--sup); border-radius: var(--raio); padding: 12px 20px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .15s; }
.botao.primario { background: var(--destaque); border-color: var(--destaque); color: #fff; }
.botao.primario:hover { background: var(--destaque-escuro); }
.botao:disabled, .botao.desligado { opacity: .45; cursor: default; }
.botao.primario:disabled:hover { background: var(--destaque); }
.botao.largo { width: 100%; }
.botao.grande { padding: 15px 22px; font-size: 16px; }
.botao.pequeno { padding: 6px 12px; font-size: 13.5px; border-radius: 999px; }
.link { border: 0; background: none; padding: 0; color: var(--destaque); font-weight: 600; text-decoration: none; font-size: 14px; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.discreto { color: var(--suave); font-weight: 400; }

/* ---------- avisos: pílulas no alto (problemas, somem quando passam) e avisos curtos (somem em 5 s) ---------- */
.avisos-topo { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; justify-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
body.no-comeco .avisos-topo { top: 20px; }
body.na-grade .avisos-topo { left: auto; right: 24px; transform: none; justify-items: end; max-width: min(560px, calc(100vw - 48px)); }
body.na-grade .pilula { max-width: 100%; border-radius: 16px; }
.avisos-topo > * { pointer-events: auto; }
.pilula { display: inline-flex; align-items: center; gap: 10px; background: var(--aviso-fundo); color: var(--aviso-texto); border: 1px solid var(--aviso-linha); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; margin: 0; max-width: 760px; box-shadow: 0 6px 20px rgba(80, 60, 0, .08); animation: entra .25s ease-out; }
.pilula .botao { flex: none; }
.pilula.forte { padding: 8px 8px 8px 16px; }
.pilula.discreta { background: var(--sup); color: var(--suave); border-color: var(--linha); font-size: 12.5px; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #e0a800; flex: none; animation: pisca 1.2s ease-in-out infinite; }
@keyframes pisca { 50% { opacity: .3; } }
.avisos { display: grid; justify-items: center; gap: 8px; }
.aviso { display: flex; align-items: center; gap: 10px; background: var(--sup); color: var(--texto); border-radius: 999px; padding: 8px 8px 8px 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(40, 30, 90, .16); animation: entra .25s ease-out; transition: opacity .35s, transform .35s; max-width: 720px; }
.aviso.saindo { opacity: 0; transform: translateY(-6px); }
.aviso-icone { width: 20px; height: 20px; flex: none; color: var(--destaque); }
.aviso-ok .aviso-icone { color: var(--ok); }
.aviso-erro .aviso-icone { color: var(--erro); }
.aviso-icone svg, .aviso-x svg { width: 100%; height: 100%; display: block; }
.aviso-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--grade-fundo); color: var(--suave); padding: 5px; flex: none; }
@keyframes entra { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- palco e cartão ---------- */
main { display: block; }
.palco { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 72px 16px 64px; }
body.no-comeco .palco { min-height: 100vh; padding-top: 64px; }
.cartao { width: 100%; max-width: 400px; background: var(--sup); border-radius: 24px; box-shadow: 0 1px 2px rgba(30, 20, 80, .06), 0 18px 50px rgba(60, 40, 120, .10); }
.cartao-corpo { padding: 32px 28px 24px; text-align: center; }
.cartao-pe { padding: 0 20px 20px; text-align: center; }
.cartao-pe .dica { margin: 12px 0 2px; font-size: 13px; }
.titulo { font-size: 24px; font-weight: 650; margin: 0 0 6px; letter-spacing: -.01em; }
.sub { color: var(--suave); margin: 0; }
.centro-txt { margin: 4px 0 22px; }
.campo { display: block; text-align: left; margin: 18px 0 4px; }
.campo span { display: block; font-size: 13px; color: var(--suave); margin-bottom: 6px; }
.campo input { width: 100%; padding: 13px 14px; border: 1px solid var(--linha); border-radius: 12px; background: var(--sup-2); font-size: 16px; }
.campo input:focus { outline: 2px solid var(--destaque); outline-offset: -1px; background: #fff; }
.campo input::placeholder { color: #8a8898; }
.continuar-lista { display: grid; gap: 8px; margin-top: 14px; }
.continuar-lista:empty { display: none; }
.continuar { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--sup-2); text-align: left; font-size: 14px; color: var(--suave); }
.continuar:hover { background: var(--destaque-claro); }
.continuar b { color: var(--texto); }
.continuar small { color: var(--suave); font-size: 13px; white-space: nowrap; }
.erro { color: var(--erro); min-height: 1.4em; margin: 10px 0 0; font-size: 14px; }

/* vazio: o botão redondo (abre direto a escolha da pasta) */
.vazio { padding: 48px 28px 36px; }
.mais { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--destaque); position: relative; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(90, 69, 214, .28); transition: transform .15s, background .15s; }
.mais:hover { transform: scale(1.04); background: var(--destaque-escuro); }
.mais i, .mais-icone { position: absolute; inset: 0; }
.mais i::before, .mais i::after, .mais-icone::before, .mais-icone::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 3px; border-radius: 3px; background: #fff; transform: translate(-50%, -50%); }
.mais i::after, .mais-icone::after { transform: translate(-50%, -50%) rotate(90deg); }
.vazio .titulo { font-size: 22px; }
.soltas { margin: 18px 0 0; }
.soltas .link { font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }

/* anel de progresso */
.anel-caixa { position: relative; width: 168px; height: 168px; margin: 4px auto 18px; }
.anel { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.anel-fundo { fill: none; stroke: #efedf6; stroke-width: 9; }
.anel-valor { fill: none; stroke: var(--destaque); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s; }
.anel-valor.girando { stroke-dasharray: 22 78; stroke-dashoffset: 0; animation: anel-gira 1.2s linear infinite; transform-origin: 60px 60px; transition: none; }
@keyframes anel-gira { to { transform: rotate(360deg); } }
.anel-texto { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; font-variant-numeric: tabular-nums; }
.anel-texto b { font-size: 44px; font-weight: 600; letter-spacing: -.03em; }
.anel-texto small { font-size: 18px; color: var(--suave); margin-left: 2px; }
.anel-texto.pequeno { color: var(--suave); font-size: 14px; display: grid; place-items: center; }
.estado { margin: 0 0 18px; display: flex; flex-direction: column; gap: 2px; }
.estado b { font-weight: 600; font-size: 16px; }
.estado span { color: var(--suave); font-size: 14px; }
.estado span:empty { display: none; }
.erro-linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--erro-fundo); color: var(--erro); font-size: 14px; text-align: left; }
.erro-linha .link { color: var(--erro); flex: none; text-align: right; }
.erro-linha.aviso { background: var(--aviso-fundo); color: var(--aviso-texto); }
.erro-linha.aviso .link { color: var(--aviso-texto); text-decoration: underline; }
.erro-linha.dentro { margin: 0 28px 18px; }
.erro-linha.longa { flex-direction: column; align-items: flex-start; gap: 6px; }
.linha-itens { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px 2px; border-top: 1px solid var(--linha); font-size: 14px; color: var(--suave); }
.linha-itens b { color: var(--texto); font-weight: 600; }
.linha-itens:has(#txt-itens:empty) { justify-content: center; }

/* baixar: as últimas editadas e o leque */
.recentes { display: flex; justify-content: center; gap: 6px; margin: 0 0 18px; min-height: 48px; }
.recentes:empty { min-height: 0; margin: 0; }
.recentes img, .leque img { cursor: zoom-in; }
.recentes img { width: 56px; height: 48px; object-fit: cover; border-radius: 8px; animation: aparece .4s; background: #eee; }
@keyframes aparece { from { opacity: 0; transform: scale(.92); } }
.links-pe { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.leque { position: relative; height: 150px; margin: 0 auto 22px; width: 260px; }
.leque img { position: absolute; top: 14px; left: 50%; width: 170px; height: 113px; object-fit: cover; border-radius: 10px; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(40, 30, 90, .18); background: #eee; }
.leque img:nth-child(1) { transform: translateX(-92%) rotate(-10deg); }
.leque img:nth-child(2) { transform: translateX(-8%) rotate(9deg); }
.leque img:nth-child(3) { transform: translateX(-50%) translateY(-8px); z-index: 2; }
.leque.um img { transform: translateX(-50%); }
.leque.dois img:nth-child(1) { transform: translateX(-80%) rotate(-7deg); }
.leque.dois img:nth-child(2) { transform: translateX(-20%) rotate(6deg); }
.baixou { color: var(--ok); font-size: 14px; margin: 12px 4px 0; }

/* véu de arrastar */
.veu { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(241, 237, 252, .94); backdrop-filter: blur(6px); }
.veu::before { content: ""; position: absolute; inset: 14px; border: 2.5px dashed var(--destaque); border-radius: 26px; }
body.arrastando .veu { display: grid; }
.veu-caixa { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 22px; font-weight: 650; color: var(--destaque); }
.veu-caixa .mais-icone { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--destaque); box-shadow: 0 8px 24px rgba(90, 69, 214, .3); }

/* ---------- escolher ---------- */
.escolher { padding: 0 28px 132px; max-width: 1800px; margin: 0 auto; }  /* o fim da grade fica livre da barra de baixo */
.filtros-linha { display: flex; justify-content: center; padding: 18px 0 4px; }
.filtros { display: inline-flex; gap: 4px; background: #ebeaf1; border-radius: 999px; padding: 4px; }
.filtros button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; color: var(--suave); font-size: 14px; }
.filtros button span { margin-left: 2px; font-variant-numeric: tabular-nums; }
.filtros button.ativo { background: var(--sup); color: var(--texto); font-weight: 600; box-shadow: 0 1px 3px rgba(30, 20, 80, .1); }
.trecho { margin-top: 24px; }
.trecho-titulo { margin: 0 0 12px; font-size: 16px; font-weight: 650; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.trecho-n { color: var(--suave); font-size: 13px; font-weight: 400; }
.trecho.saidas .trecho-titulo { color: var(--aviso-texto); }
.nada { text-align: center; color: var(--suave); margin: 60px 0; }

/* linhas justificadas (como o Google Fotos): cada foto cresce na proporção dela, todas da linha com a mesma altura */
.trecho-fotos { --h: 200px; display: flex; flex-wrap: wrap; gap: 8px; }
.trecho-fotos::after { content: ""; flex-grow: 999999; }  /* a última linha não estica */
.foto { --a: 1.5; flex: var(--a) 1 calc(var(--a) * var(--h)); min-width: 0; margin: 0; position: relative; border-radius: 10px; cursor: pointer; background: #e4e2ec; overflow: hidden; }
.foto img { display: block; width: 100%; aspect-ratio: var(--a); object-fit: cover; transition: transform .18s, border-radius .18s; }
/* escolhida: vista de relance — a moldura de 3 px na cor de destaque, a foto recolhida e o check cheio */
.foto::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid transparent; pointer-events: none; transition: border-color .12s; }
.foto.escolhida { background: var(--destaque-claro); }
.foto.escolhida::after { border-color: var(--destaque); }
.foto.escolhida img { transform: scale(.93); border-radius: 7px; }
/* o foco do teclado: um contorno escuro POR FORA, diferente de "escolhida" */
.foto.foco { outline: 2.5px solid var(--texto); outline-offset: 3px; }
.foto-check { position: absolute; top: 9px; left: 9px; width: 28px; height: 28px; border-radius: 50%; padding: 5px; border: 2px solid #fff; background: rgba(0, 0, 0, .22); color: transparent; opacity: 0; transition: opacity .12s; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.foto-check svg { width: 100%; height: 100%; display: block; }
.foto:hover .foto-check, .foto.foco .foto-check { opacity: 1; }
.foto.escolhida .foto-check { opacity: 1; background: var(--destaque); color: #fff; top: 7px; left: 7px; }
.foto-ampliar { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 7px; background: rgba(255, 255, 255, .92); color: var(--texto); opacity: 0; transition: opacity .12s; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.foto-ampliar svg { width: 100%; height: 100%; display: block; }
.foto:hover .foto-ampliar { opacity: 1; }
.selos { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 4px; }
.selo { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #7a4a00; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 6px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.selo svg { width: 15px; height: 15px; }
.irmas { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; border: 0; background: rgba(255, 255, 255, .94); color: var(--texto); font-size: 12px; font-weight: 600; padding: 4px 9px 4px 7px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.irmas svg { width: 14px; height: 14px; }
.irmas:hover { background: #fff; color: var(--destaque); }
.na-rajada { color: var(--destaque); }
.na-rajada:empty { display: none; }
.foto.escolhida .selos { left: 13px; bottom: 13px; }
.foto.escolhida .irmas { right: 13px; bottom: 13px; }
/* reservas ("ver mais deste trecho"): na mesma grade, um pouco apagadas até serem escolhidas */
.foto.reserva:not(.escolhida) img { opacity: .78; }
.foto.reserva:not(.escolhida):hover img { opacity: 1; }
.ver-mais { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; border: 1px dashed #c9c5dc; background: var(--sup); color: var(--destaque); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; }
.ver-mais:hover { border-style: solid; border-color: var(--destaque); }

/* a barra flutuante */
.doca { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; background: rgba(28, 27, 34, .95); color: #fff; padding: 8px 8px 8px 16px; border-radius: 999px; box-shadow: 0 12px 36px rgba(20, 10, 60, .28); backdrop-filter: blur(10px); white-space: nowrap; }
body.com-lupa .doca { display: none; }
.doca-cont { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.doca-cont b { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.anel.mini { width: 26px; height: 26px; }
.anel.mini .anel-fundo { stroke: rgba(255, 255, 255, .18); stroke-width: 14; }
.anel.mini .anel-valor { stroke: #b3a8ff; stroke-width: 14; }
.antecipada { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .8); padding-left: 4px; }
.antecipada img { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .5); }
.doca-div { width: 1px; height: 24px; background: rgba(255, 255, 255, .16); }
.doca-bt { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 17px; }
.doca-bt:hover { background: rgba(255, 255, 255, .2); }
.doca .botao.primario { border-radius: 999px; padding: 10px 22px; }
.doca .botao.primario:disabled { opacity: .55; }
.ancora { position: relative; display: inline-block; }
.pop { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); min-width: 300px; background: var(--sup); border: 1px solid var(--linha); border-radius: 14px; padding: 14px 16px; z-index: 31; box-shadow: 0 16px 40px rgba(40, 30, 90, .14); display: grid; gap: 9px; color: var(--suave); font-size: 14px; white-space: normal; text-align: left; }

/* ---------- lupa ---------- */
.lupa { position: fixed; inset: 0; z-index: 40; background: rgba(18, 17, 24, .97); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
body.com-lupa { overflow: hidden; }
.lupa-topo { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.lupa-info { color: rgba(255, 255, 255, .78); font-size: 14px; font-variant-numeric: tabular-nums; }
.lupa-selo { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #7a4a00; font-size: 12.5px; font-weight: 600; padding: 3px 10px 3px 6px; border-radius: 999px; }
.lupa-selo svg { width: 15px; height: 15px; }
.lupa-fechar { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; }
.lupa-fechar:hover { background: rgba(255, 255, 255, .2); }
.lupa-meio { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; min-height: 0; }
.lupa-meio img { max-width: 100%; max-height: calc(100vh - 210px); margin: auto; display: block; border-radius: 6px; }
.lupa-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 24px; margin: auto; }
.lupa-nav:hover { background: rgba(255, 255, 255, .2); }
.lupa-nav:disabled { opacity: .25; cursor: default; }
.lupa-doca { justify-self: center; margin: 12px 0 22px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--texto); padding: 8px; border-radius: 20px; box-shadow: 0 12px 36px rgba(0, 0, 0, .35); max-width: calc(100vw - 24px); }
.lupa-doca .doca-div { background: var(--linha); }
.lupa-cont { color: var(--suave); font-size: 14px; white-space: nowrap; padding-left: 4px; }
.lupa-cont b { color: var(--texto); }
.lupa-cont:empty { display: none; }
.tira { display: flex; gap: 6px; overflow-x: auto; }
.tira:empty { display: none; }
.tira-foto { position: relative; height: 60px; padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; opacity: .6; flex: none; }
.tira-foto img { height: 100%; display: block; }
.tira-foto:hover, .tira-foto.atual { opacity: 1; }
.tira-foto::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid transparent; pointer-events: none; }
.tira-foto.atual::after { border-color: var(--destaque); }
.tira-foto .foto-check { top: 4px; left: 4px; width: 18px; height: 18px; padding: 2px; border-width: 1.5px; }
.tira-foto.escolhida { opacity: 1; }
.tira-foto.escolhida .foto-check { opacity: 1; background: var(--destaque); color: #fff; }
.botao.bt-escolher { border-radius: 14px; min-width: 132px; padding: 11px 18px; background: var(--grade-fundo); border-color: var(--linha); }
.botao.bt-escolher svg { width: 18px; height: 18px; }
.botao.bt-escolher.ativo { background: var(--destaque); border-color: var(--destaque); color: #fff; }
.botao.bt-escolher kbd { margin-left: 4px; }

/* ---------- entrar e o teste de internet ---------- */
.pagina-entrar .palco { min-height: 100vh; padding-top: 24px; }
.resultados { font-variant-numeric: tabular-nums; }
.veredito { font-weight: 600; }
.veredito.bom { color: var(--ok); }
.veredito.ruim { color: var(--erro); }
.tela-teste { max-width: 720px; margin: 0 auto; padding: 40px 16px; }

/* ---------- telas menores e o celular (só olhando) ---------- */
@media (max-width: 1000px) {
  .topo { grid-template-columns: auto 1fr auto; gap: 12px; padding: 0 16px; }
  .passos { justify-self: center; }
}
@media (max-width: 700px) {
  .topo { grid-template-columns: auto 1fr; }
  .topo-casal { display: none; }
  .passos { justify-self: end; gap: 4px; }
  .passo { font-size: 12.5px; }
  .traco { width: 10px; }
  .escolher { padding: 0 10px 110px; }
  .trecho-fotos { --h: 110px; gap: 4px; }
  .foto { border-radius: 6px; }
  .irmas, .foto.escolhida .irmas { right: 4px; bottom: 4px; padding: 2px 6px; }
  .irmas svg, .selo span { display: none; }
  .doca { left: 12px; right: 12px; transform: none; justify-content: space-between; padding-left: 12px; }
  .doca-cont span { font-size: 13px; }
  .doca .ancora, .doca-div, .antecipada, #bt-doca-mais { display: none; }
  .lupa-meio { grid-template-columns: 1fr; }
  .lupa-nav, .lupa-cont { display: none; }
  .lupa-doca { overflow-x: auto; }
  .avisos-topo { top: 70px; }
  body.na-grade .avisos-topo { top: 126px; right: 12px; max-width: calc(100vw - 24px); }
  .pilula { flex-wrap: wrap; border-radius: 16px; }
  .pilula > span { flex: 1 1 200px; min-width: 0; }  /* o ponto fica na linha do texto; só o botão desce */
}
/* tela de toque (o celular, só olhando): sem o contorno do foco do teclado */
@media (hover: none) {
  .foto.foco { outline: none; }
}
