/* Arquivos 3FA: mesma linguagem do site 3fa.com.br (tokens copiados de site-3fa/app/src/styles.css). */
:root {
  --ink: oklch(0.294755809 0.092860588 253.680175);          /* #002C59 */
  --ink-raised: oklch(0.367177645 0.149939627 260.954562);   /* #05378C */
  --ink-fg: #fff;
  --brand: var(--ink-raised);
  --brand-strong: var(--ink);
  --brand-soft: oklch(0.82 0.085 254);
  --bg: #fff;
  --muted: oklch(0.975 0.008 254);
  --muted-fg: oklch(0.47 0.04 258);
  --accent: oklch(0.94 0.025 254);
  --border: oklch(0.9 0.012 258);
  --input: oklch(0.88 0.014 258);
  --perigo: oklch(0.5 0.19 27);
  --radius: 0.875rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 360ms;
  --shadow-brand: 0 14px 30px -14px color-mix(in oklab, var(--brand) 70%, transparent);
  --shadow-lift: 0 24px 50px -24px color-mix(in oklab, var(--ink) 55%, transparent);
  --display: "Archivo", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
:where(a, button, input, select, summary, svg, img) { transition-duration: var(--dur); transition-timing-function: var(--ease); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 800; font-stretch: 112%; letter-spacing: 0; line-height: 1.02; }
.caixa { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .caixa { padding-inline: 2rem; } }

/* Superficie azul com os aneis da embalagem 3FA */
.ink-surface {
  background-color: var(--ink); color: var(--ink-fg);
  background-image:
    radial-gradient(circle at 88% -10%, transparent 0 219px, color-mix(in oklab, var(--ink-fg) 9%, transparent) 220px 221px, transparent 222px),
    radial-gradient(circle at 104% 62%, transparent 0 299px, color-mix(in oklab, var(--ink-fg) 7%, transparent) 300px 301px, transparent 302px),
    radial-gradient(circle at 70% 118%, transparent 0 179px, color-mix(in oklab, var(--ink-fg) 7%, transparent) 180px 181px, transparent 182px),
    radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--ink-raised) 90%, transparent), transparent 60%);
}

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--ink) 95%, transparent); color: var(--ink-fg);
  border-bottom: 1px solid color-mix(in oklab, var(--ink-fg) 10%, transparent); backdrop-filter: blur(12px); }
.topo-in { max-width: 72rem; margin-inline: auto; height: 4rem; padding-inline: 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
@media (min-width: 640px) { .topo-in { height: 4.5rem; padding-inline: 2rem; } }
.topo-logo img { height: 2.75rem; width: auto; }
.topo-nav { display: flex; gap: 2rem; margin-left: auto; }
.topo-nav a { position: relative; padding-block: .5rem; font-size: .875rem; font-weight: 500; text-decoration: none;
  color: color-mix(in oklab, var(--ink-fg) 75%, transparent); transition-property: color; }
.topo-nav a:hover, .topo-nav a[aria-current="page"] { color: var(--ink-fg); }
.topo-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 9999px; background: var(--brand-soft); }
.topo-conta { margin-left: auto; display: flex; align-items: center; gap: .75rem; min-width: 0; }
.topo-nav:not([hidden]) + .topo-conta { margin-left: 0; }
.topo-email { font-size: .875rem; color: color-mix(in oklab, var(--ink-fg) 75%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
@media (max-width: 639px) { .topo-email { display: none; } .topo-nav { gap: 1.25rem; } }

/* ---------- botoes (pilula, igual ao site) ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .875rem 1.5rem; border-radius: 9999px; border: 1px solid transparent; font-size: .875rem; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition-property: color, background-color, border-color, box-shadow, transform; transition-duration: 300ms; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-brand:hover { background: var(--brand-strong); transform: translateY(-2px); }
.btn-brand::after { content: ""; position: absolute; inset-block: -60%; left: 0; width: 42%; pointer-events: none;
  background: linear-gradient(105deg, transparent, color-mix(in oklab, #fff 38%, transparent), transparent);
  transform: translateX(-180%) skewX(-18deg); transition: transform 700ms var(--ease); }
.btn-brand:hover::after { transform: translateX(340%) skewX(-18deg); }
.btn-linha { border-color: color-mix(in oklab, var(--ink) 25%, transparent); color: var(--ink); background: transparent; }
.btn-linha:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-escuro { border-color: color-mix(in oklab, #fff 30%, transparent); color: #fff; background: transparent; }
.btn-escuro:hover { border-color: #fff; background: color-mix(in oklab, #fff 10%, transparent); }
.btn-pequeno { min-height: 2.25rem; padding: .5rem 1rem; font-size: .8125rem; }
.btn-perigo { color: var(--perigo); border-color: color-mix(in oklab, var(--perigo) 30%, transparent); background: transparent; }
.btn-perigo:hover { background: var(--perigo); color: #fff; border-color: var(--perigo); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-icone { width: 2.75rem; padding: 0; }
.link { color: var(--brand); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- entrada ---------- */
.entrada { position: relative; overflow: hidden; display: grid; min-height: calc(100svh - 4rem); }
@media (min-width: 640px) { .entrada { min-height: calc(100svh - 4.5rem); } }
.entrada-in { display: grid; gap: 2.5rem; align-items: center; padding-block: 3rem 4rem; }
@media (min-width: 900px) { .entrada-in { grid-template-columns: 1.05fr .95fr; gap: 4rem; padding-block: 5rem; } }
.entrada-brilho { position: absolute; inset: 0; z-index: 0; pointer-events: none; filter: blur(12px);
  background-image: radial-gradient(ellipse at 78% 18%, color-mix(in oklab, var(--brand-soft) 24%, transparent), transparent 42%),
    radial-gradient(ellipse at 48% 92%, color-mix(in oklab, var(--brand) 42%, transparent), transparent 52%); }
.entrada-in > * { position: relative; }
.selo { display: inline-flex; align-items: center; gap: .625rem; padding: .625rem 1rem; border-radius: 9999px; font-size: .75rem; font-weight: 600;
  border: 1px solid color-mix(in oklab, #fff 24%, transparent); background: color-mix(in oklab, #fff 9%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 16%, transparent); backdrop-filter: blur(16px) saturate(130%); }
.selo i { width: .375rem; height: .375rem; border-radius: 9999px; background: var(--brand-soft); box-shadow: 0 0 12px var(--brand-soft); }
.entrada h1 { margin: 1.5rem 0 0; font-size: clamp(2.25rem, 6vw, 4.25rem); text-wrap: balance; max-width: 14ch; }
.entrada h1 span { color: var(--brand-soft); }
.entrada-txt { margin: 1.25rem 0 0; max-width: 32rem; font-size: 1.125rem; line-height: 1.65; color: color-mix(in oklab, #fff 80%, transparent); }

.cartao { background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: calc(var(--radius) + 12px);
  padding: 1.75rem; box-shadow: var(--shadow-lift); }
@media (min-width: 640px) { .cartao { padding: 2.25rem; } }
.cartao h2 { margin: 0; font-size: 1.75rem; }
.cartao > p { margin: .5rem 0 0; color: var(--muted-fg); }
.campo { display: grid; gap: .5rem; margin-top: 1.5rem; }
.campo label { font-size: .875rem; font-weight: 600; }
.entrada-campo { width: 100%; height: 3rem; padding: 0 1rem; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px);
  background: #fff; font-size: 1rem; transition-property: border-color, box-shadow; }
.entrada-campo:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.cartao .btn-brand { width: 100%; margin-top: 1.5rem; padding-block: 1rem; font-size: 1rem; }
.cartao-rodape { margin-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted-fg); }
.erro { margin-top: 1rem; padding: .75rem 1rem; border-radius: calc(var(--radius) - 4px); background: color-mix(in oklab, var(--perigo) 8%, #fff);
  color: var(--perigo); font-size: .875rem; }

/* codigo: 6 casas, como o selo do e-mail */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-top: 1.5rem; }
.otp input { width: 100%; aspect-ratio: 4 / 5; max-height: 4.25rem; text-align: center; border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px); background: var(--muted); font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.5rem, 6vw, 2rem); color: var(--ink); caret-color: var(--brand); transition-property: border-color, box-shadow, background-color, transform; }
.otp input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.otp input.cheio { background: #fff; border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); }
.otp.treme { animation: treme 420ms var(--ease); }
@keyframes treme { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- faixa de pagina (como o PageHero do site) ---------- */
.faixa { position: relative; overflow: hidden; }
.faixa-in { padding-block: 2.5rem 3rem; }
@media (min-width: 640px) { .faixa-in { padding-block: 3.5rem 4rem; } }
.faixa h1 { margin: 0; font-size: clamp(1.75rem, 7vw, 3.25rem); text-wrap: balance; overflow-wrap: anywhere; }
.faixa p { text-wrap: pretty; margin: 1rem 0 0; max-width: 40rem; font-size: 1.0625rem; line-height: 1.65; color: color-mix(in oklab, #fff 75%, transparent); }
.faixa-acoes { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.trilha { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-bottom: 1.25rem; font-size: .875rem; }
.trilha a { color: color-mix(in oklab, #fff 82%, transparent); text-decoration: none; }
.trilha [aria-current] { color: #fff; font-weight: 600; }
.trilha a:hover { color: #fff; }
.trilha span[aria-hidden] { color: color-mix(in oklab, #fff 35%, transparent); }
.de-onde { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .875rem; font-weight: 600; color: var(--brand-soft); }
.de-onde::before { content: ""; width: 2rem; height: 1px; background: var(--brand-soft); }

/* ---------- conteudo ---------- */
.secao { padding-block: 2.5rem 5rem; }
.barra { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.busca { position: relative; flex: 1 1 18rem; max-width: 28rem; }
.busca svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1.125rem; height: 1.125rem; color: var(--muted-fg); pointer-events: none; }
.busca input { width: 100%; height: 2.75rem; padding: 0 1rem 0 2.75rem; border: 1px solid var(--input); border-radius: 9999px; background: #fff; font-size: .9375rem; }
.busca input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.contagem { font-size: .875rem; color: var(--muted-fg); margin-left: auto; }

/* pastas liberadas: cartao premium do site */
.grade { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.pasta { position: relative; display: flex; flex-direction: column; min-height: 11rem; padding: 1.5rem; border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px); background: #fff; color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform 480ms var(--ease), border-color 360ms var(--ease), box-shadow 480ms var(--ease); }
.pasta:hover, .pasta:focus-visible { transform: translateY(-5px); border-color: color-mix(in oklab, var(--brand) 45%, var(--border));
  box-shadow: var(--shadow-lift), 0 0 0 1px color-mix(in oklab, var(--brand) 12%, transparent); }
.pasta-icone { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: var(--radius); background: var(--accent); color: var(--brand); }
.pasta-icone svg { width: 1.5rem; height: 1.5rem; }
.pasta h3 { margin: 1.25rem 0 0; font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.25rem; line-height: 1.15; overflow-wrap: anywhere; }
.pasta-conta { margin-top: auto; padding-top: 1rem; font-size: .875rem; line-height: 1.5; color: var(--muted-fg); overflow-wrap: anywhere; }
.pasta h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pasta-seta { position: absolute; top: 2.375rem; right: 1.5rem; width: 1.25rem; height: 1.25rem; color: var(--muted-fg); transition-property: transform, color; }
.pasta:hover .pasta-seta { transform: translate(3px, -3px); color: var(--brand); }
.pasta.sumiu { opacity: .6; pointer-events: none; }

/* lista de arquivos */
.lista { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: clip; background: #fff; }
.linha { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: .875rem; padding: .75rem 1rem;
  border-top: 1px solid var(--border); text-decoration: none; color: inherit; background: #fff; transition-property: background-color; }
.linha:first-child { border-top: 0; }
@media (min-width: 720px) { .linha { grid-template-columns: 2.5rem minmax(0, 1fr) 8rem 6rem 8rem 2.5rem; gap: 1.25rem; padding: .625rem 1.25rem; } }
.linha-cab { position: sticky; top: 4rem; z-index: 2; }
@media (min-width: 640px) { .linha-cab { top: 4.5rem; } }
.baixa.abre { color: var(--muted-fg); }
.linha:hover .baixa.abre { color: var(--brand); transform: translateX(2px); }
.linha:hover { background: var(--muted); }
.linha-cab { background: var(--muted); font-size: .8125rem; font-weight: 600; color: var(--muted-fg); padding-block: .625rem; }
.linha-cab:hover { background: var(--muted); }
@media (max-width: 719px) { .linha-cab { display: none; } .so-largo { display: none; } }
.tipo { width: 2.5rem; height: 2.5rem; border-radius: calc(var(--radius) - 4px); display: grid; place-items: center; background: var(--accent); color: var(--brand); }
.tipo svg { width: 1.25rem; height: 1.25rem; }
.tipo[data-t="pasta"] { background: color-mix(in oklab, var(--ink) 90%, var(--brand)); color: #fff; }
.nome { min-width: 0; }
.nome b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nome small { display: block; font-size: .8125rem; color: var(--muted-fg); }
@media (min-width: 720px) { .nome small { display: none; } }
.col { font-size: .875rem; color: var(--muted-fg); white-space: nowrap; }
.baixa { width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: grid; place-items: center; color: var(--ink); border: 1px solid transparent; background: none; cursor: pointer; }
.baixa:hover { border-color: var(--border); background: #fff; color: var(--brand); }
.baixa svg { width: 1.125rem; height: 1.125rem; }
button.linha { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; font: inherit; cursor: pointer; }
.vazio { padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--input); border-radius: calc(var(--radius) + 8px); color: var(--muted-fg); background: var(--muted); }
.vazio h3 { margin: 0 0 .5rem; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.carregando { height: 3.75rem; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, #fff 0, var(--muted) 40%, #fff 80%) 0 0 / 200% 100%; animation: brilho 1.4s linear infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- leitor ---------- */
.leitor { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr; background: color-mix(in oklab, var(--ink) 96%, #000);
  color: #fff; animation: chega 360ms var(--ease) both; }
@keyframes chega { from { opacity: 0; transform: translateY(12px); } }
.leitor-topo { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid color-mix(in oklab, #fff 10%, transparent); }
@media (min-width: 640px) { .leitor-topo { padding: .875rem 2rem; } }
.leitor-nome { flex: 1; min-width: 0; }
.leitor-nome b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.0625rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leitor-nome small { color: color-mix(in oklab, #fff 65%, transparent); font-size: .8125rem; }
.leitor-corpo { position: relative; overflow: auto; display: grid; place-items: center; padding-block: 1.5rem; }
.leitor-corpo img { background: repeating-conic-gradient(#fff 0 25%, #eef2f8 0 50%) 0 0 / 20px 20px; }
.leitor-corpo img, .leitor-corpo video { max-width: 100%; max-height: calc(100svh - 8rem); border-radius: calc(var(--radius) - 4px); box-shadow: 0 30px 60px -30px #000; }
.leitor-corpo audio { width: min(36rem, 100%); }
.leitor-pdf { width: min(60rem, 100%); align-self: start; display: grid; gap: 1rem; }
.leitor-pdf canvas { width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 20px 40px -24px #000; }
.leitor-texto { width: min(60rem, 100%); align-self: start; margin: 0; padding: 1.5rem; background: #fff; color: var(--ink); border-radius: var(--radius);
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; }
.leitor-sem { max-width: 28rem; text-align: center; }
.leitor-sem h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 0 0 .5rem; }
.leitor-sem p { color: color-mix(in oklab, #fff 70%, transparent); margin: 0 0 1.5rem; }
.leitor-nav { position: fixed; top: calc(50% + 2.25rem); z-index: 81; translate: 0 -50%; width: 3rem; min-height: 3rem; color: #fff;
  background: color-mix(in oklab, var(--ink) 72%, transparent); border-color: color-mix(in oklab, #fff 22%, transparent); backdrop-filter: blur(8px); }
.leitor-nav:hover { background: var(--brand); border-color: var(--brand); }
.leitor-nav.ant { left: 1.25rem; } .leitor-nav.prox { right: 1.25rem; }
.leitor-corpo { padding-inline: 5rem; }
@media (max-width: 639px) { .leitor-corpo { padding-inline: 1rem; padding-bottom: 5rem; } }
.leitor-pos { font-size: .8125rem; color: color-mix(in oklab, #fff 65%, transparent); white-space: nowrap; }
@media (max-width: 639px) { .leitor-pos { display: none; } }
.leitor-corpo img { object-fit: contain; }
@media (max-width: 639px) { .leitor-nav { top: auto; bottom: 1rem; translate: none; } }
.planilha { width: min(72rem, 100%); align-self: start; background: #fff; color: var(--ink); border-radius: var(--radius); overflow: auto; max-height: calc(100svh - 7rem); }
.planilha table { border-collapse: collapse; font-size: .8125rem; }
.planilha td, .planilha th { border: 1px solid var(--border); padding: .375rem .625rem; white-space: nowrap; max-width: 24rem; overflow: hidden; text-overflow: ellipsis; }
.planilha th { position: sticky; top: 0; background: var(--muted); font-weight: 600; }
.abas-planilha { display: flex; gap: .5rem; flex-wrap: wrap; padding: .75rem; position: sticky; left: 0; }

/* ---------- gestao ---------- */
.pessoas { display: grid; gap: .75rem; }
.pessoa { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; padding: 1.125rem 1.25rem;
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: #fff; text-align: left; width: 100%; cursor: pointer;
  transition: border-color 360ms var(--ease), box-shadow 480ms var(--ease), transform 480ms var(--ease); }
.pessoa:hover { border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.pessoa b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.pessoa small { color: var(--muted-fg); font-size: .875rem; }
.situ { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 9999px; font-size: .8125rem; font-weight: 600;
  background: var(--accent); color: var(--brand); white-space: nowrap; }
.situ i { width: .4375rem; height: .4375rem; border-radius: 9999px; background: currentColor; }
.situ.off { background: var(--muted); color: var(--muted-fg); }

.painel { position: fixed; inset: 0 0 0 auto; z-index: 70; width: min(40rem, 100%); background: #fff; display: grid; grid-template-rows: auto 1fr auto;
  box-shadow: -30px 0 60px -30px color-mix(in oklab, var(--ink) 50%, transparent); animation: entra 420ms var(--ease) both; }
@keyframes entra { from { transform: translateX(40px); opacity: 0; } }
.veu { position: fixed; inset: 0; z-index: 69; background: color-mix(in oklab, var(--ink) 45%, transparent); backdrop-filter: blur(2px); animation: aparece 300ms ease both; }
@keyframes aparece { from { opacity: 0; } }
.painel-topo { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.5rem 1rem; }
.painel-topo h2 { flex: 1; margin: 0; font-size: 1.625rem; }
.painel-corpo { overflow: auto; padding: 0 1.5rem 2rem; scrollbar-width: thin; }
.painel-pe { display: flex; gap: .75rem; flex-wrap: wrap; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--muted); }
.painel-pe .espaco { flex: 1; }
.painel-pe .btn-brand { box-shadow: none; }
.grupo { margin-top: 1.75rem; }
.grupo > h3 { margin: 0 0 .75rem; font-size: 1rem; font-weight: 700; }
.grupo > p { margin: -.5rem 0 .75rem; font-size: .875rem; color: var(--muted-fg); }
.duas { display: grid; gap: 1rem; }
@media (min-width: 560px) { .duas { grid-template-columns: 1fr 1fr; } }
.duas .campo { margin-top: 0; }
.escolha { display: flex; flex-wrap: wrap; gap: .5rem; }
.escolha label { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 1px solid var(--input); border-radius: 9999px; cursor: pointer;
  font-size: .875rem; font-weight: 500; transition-property: border-color, background-color, color; }
.escolha input { position: absolute; opacity: 0; pointer-events: none; }
.escolha label:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.escolha label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.liberadas { display: grid; gap: .5rem; }
.liberada { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .625rem .75rem;
  border: 1px solid var(--border); border-radius: var(--radius); }
.liberada .tipo { width: 2.25rem; height: 2.25rem; }
.liberada b { display: block; font-weight: 600; overflow-wrap: anywhere; font-size: .9375rem; }
.liberada small { color: var(--muted-fg); font-size: .8125rem; overflow-wrap: anywhere; }
.x { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 9999px; background: none; color: var(--muted-fg); cursor: pointer; display: grid; place-items: center; }
.x:hover { background: color-mix(in oklab, var(--perigo) 10%, #fff); color: var(--perigo); }
.x svg { width: 1.125rem; height: 1.125rem; }

.navegador { margin-top: .75rem; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.navegador-topo { display: grid; gap: .75rem; padding: 1rem; background: var(--muted); border-bottom: 1px solid var(--border); }
.navegador-topo select { height: 2.75rem; padding: 0 2.5rem 0 1rem; border: 1px solid var(--input); border-radius: 9999px; font-size: .9375rem; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d5c72' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 1rem no-repeat; }
.navegador-topo select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.nav-titulo { display: flex; align-items: center; justify-content: space-between; margin: -.25rem -.25rem -.25rem 0; }
.nav-titulo b { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; }
.rotulo { font-size: .8125rem; font-weight: 600; color: var(--muted-fg); margin-bottom: -.5rem; }
.nav-trilha { margin: 0; padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: #fff; }
.nav-item > button:first-child .entra { width: 1rem; height: 1rem; margin-left: auto; color: var(--muted-fg); opacity: 0; transition-property: opacity, transform; }
.nav-item > button:first-child:hover .entra { opacity: 1; transform: translateX(2px); }
.ou { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 1.25rem; font-size: .8125rem; color: var(--muted-fg); }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.dica { margin: 1.25rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--muted-fg); }
.otp input { background: #fff; }
.navegador .trilha { margin: 0; }
.navegador .trilha a, .navegador .trilha button { color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .875rem; }
.navegador .trilha span[aria-hidden] { color: var(--muted-fg); }
.navegador .trilha b { font-weight: 600; }
.nav-lista { max-height: min(22rem, 45svh); overflow: auto; overscroll-behavior: contain; }
.nav-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .375rem .5rem .375rem 1rem; border-top: 1px solid var(--border); }
.nav-item:first-child { border-top: 0; }
.nav-item > button:first-child { display: flex; align-items: center; gap: .75rem; min-width: 0; border: 0; background: none; padding: .5rem 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.nav-item > button:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item > button:first-child svg { width: 1.125rem; height: 1.125rem; color: var(--brand); flex-shrink: 0; }
.nav-item > button:first-child:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ok-marca { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 600; color: var(--brand); padding-right: .5rem; }
.ok-marca svg { width: 1rem; height: 1rem; }

.eventos { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.evento { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .25rem 1rem; padding: .75rem 1.25rem; border-top: 1px solid var(--border); font-size: .875rem; }
.evento:first-child { border-top: 0; }
.evento time { color: var(--muted-fg); white-space: nowrap; }
.evento b { font-weight: 600; }
@media (max-width: 559px) { .evento { grid-template-columns: 1fr; } }

.abas { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.abas button { position: relative; padding: .875rem 0; border: 0; background: none; font-weight: 600; color: var(--muted-fg); cursor: pointer; white-space: nowrap; }
.abas button[aria-selected="true"] { color: var(--ink); }
.abas button[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; border-radius: 9999px; background: var(--brand); }

.qr { display: grid; place-items: center; margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.qr svg { width: 12rem; height: 12rem; }
.chave-txt { margin-top: .75rem; font-size: .8125rem; color: var(--muted-fg); overflow-wrap: anywhere; text-align: center; }

/* ---------- rodape ---------- */
.rodape { background: var(--ink); color: color-mix(in oklab, #fff 70%, transparent); }
.rodape-in { max-width: 72rem; margin-inline: auto; padding: 1.75rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; font-size: .875rem; }
@media (min-width: 640px) { .rodape-in { padding-inline: 2rem; } }
.rodape img { height: 2rem; width: auto; opacity: .9; }
.rodape p { margin: 0; }

.aviso { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; translate: -50% 1rem; opacity: 0; pointer-events: none; max-width: calc(100% - 2rem);
  padding: .875rem 1.25rem; border-radius: 9999px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-lift);
  transition: opacity 300ms ease, translate 420ms var(--ease); }
.aviso.on { opacity: 1; translate: -50% 0; }

/* chegada da pagina, igual ao site */
.chegada { animation: chega 520ms var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .btn-brand::after { display: none; }
}

/* utilitarios (sem style inline: a CSP bloqueia) */
.u0 { border-radius:1rem; }
.u1 { border:0; border-radius:0; }
.u2 { color:var(--muted-fg); }
.u3 { cursor:default; font-weight:700; }
.u4 { cursor:pointer; }
.u5 { font-size:1.5rem; margin:0; }
.u6 { grid-column:1/-1; }
.u7 { margin-top:.75rem; }
.u8 { margin-top:.75rem; max-width:14rem; }
.u9 { margin-top:0; }
.u10 { margin-top:1.25rem; }
.u11 { margin-top:1.75rem; padding-top:1.5rem; border-top:1px solid var(--border); }
.u12 { margin-top:1rem; }
.u13 { margin-top:1rem; font-size:.8125rem; color:var(--muted-fg); }
.u14 { margin:0; color:var(--muted-fg); }
.u15 { margin:0; font-size:.875rem; color:var(--muted-fg); }
.u16 { margin:1.25rem 0 0; font-size:.875rem; font-weight:600; }
.u17 { max-width:20rem; }
.u18 { max-width:40rem; }
.u19 { max-width:none; }
.u20 { min-height:11rem; }
.u21 { min-height:2.75rem; padding-block:.5rem; }
.u22 { padding:1rem; margin:0; color:var(--muted-fg); }
.u23 { padding:1rem; margin:0; color:var(--perigo); }
.u24 { white-space:normal; font-size:1rem; line-height:1.6; }
.u25 { width:min(40rem,100%); height:3rem; border-radius:999px; opacity:.15; }
