/* Perfis, simulados, resultado e estatísticas. Usa os mesmos tokens de style.css. */
[hidden] { display: none !important; }

/* ---------- Barra superior: abas, perfil, conexão ---------- */
.abas { display: flex; gap: 2px; flex: none; }
.abas a { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--muted); white-space: nowrap; }
.abas a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.abas a[aria-current] { color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--accent); border-radius: 8px 8px 0 0; }
.brand-t { max-width: 18ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quem { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; margin-left: 4px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.quem:hover, .quem[aria-current] { border-color: var(--ink); }
.quem-i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 13px var(--mono); }
.quem-n { max-width: 11ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.fora .abas, html.fora .crumbs, html.fora .so-dentro { visibility: hidden; }
html.fora .abas { display: none; }
.top::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
html.carregando .top::after { animation: carga 1.1s ease-in-out infinite; }
@keyframes carga { 0% { transform: scaleX(0); } 60% { transform: scaleX(.8); } 100% { transform: scaleX(1); opacity: 0; } }
.sem-conexao { position: sticky; top: 54px; z-index: 29; margin: 0; padding: 8px clamp(16px, 3vw, 32px); background: var(--amber); color: #fff; font-size: .9rem; font-weight: 600; }
@media (max-width: 1080px) { .crumbs { display: none; } .tools { margin-left: auto; } }
@media (max-width: 940px) { .quem-n { display: none; } .quem { padding: 3px; } .brand { flex: 0 1 auto; min-width: 0; } .brand-t { max-width: 17ch; min-width: 0; } .top { gap: 10px; } }
@media (max-width: 760px) {
  /* backdrop-filter prenderia a barra fixa das abas dentro do cabeçalho */
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .abas a { flex: 1; text-align: center; padding: 9px 6px; }
  .abas a[aria-current] { box-shadow: inset 0 2.5px 0 var(--accent); border-radius: 0 0 8px 8px; }
  html:not(.fora) body { padding-bottom: 60px; }
}

/* ---------- Peças comuns ---------- */
.pag-h { display: grid; gap: 10px; margin-bottom: 26px; max-width: 62rem; }
.pag-h h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: .94; font-weight: 800; font-stretch: 78%; letter-spacing: -.02em; }
.pag-h h1 span { color: var(--accent); }
.pag-h .lede { margin: 0; max-width: 46em; }
.pag-h.centro { text-align: center; justify-items: center; margin-inline: auto; }
.sub { margin: 0 0 14px; color: var(--muted); font-size: .95rem; max-width: 70ch; }
.nota-pe { margin: 10px 0 0; font-size: .85rem; line-height: 1.5; color: var(--muted); max-width: 72ch; }
.alerta { margin: 0; padding: 10px 14px; border-left: 4px solid var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--paper)); border-radius: 0 8px 8px 0; font-size: .93rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 22px; margin: 0 0 22px; border-top: 1.5px solid var(--ink); }
.tiles div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tiles dt { font: 500 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tiles dd { margin: 2px 0 0; font-weight: 800; font-stretch: 84%; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tiles small { display: block; font-weight: 400; font-stretch: 100%; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.res-sec { margin-top: 38px; }
.res-sec > h2 { font-size: 1.5rem; font-weight: 800; font-stretch: 82%; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.como { margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; background: var(--paper); }
.como > summary, .esc-res details > summary, .apoio > summary { cursor: pointer; padding: 11px 0; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.como[open] { padding-bottom: 14px; }
.como p { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }
.btn:disabled, .nb:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.nb:disabled:hover { background: transparent; color: var(--ink); }
.btn.perigo { background: var(--accent); border-color: var(--accent); color: #fff; }
.lk { all: unset; cursor: pointer; font-size: .88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.lk:focus-visible { outline: 2.5px solid var(--link); outline-offset: 3px; }
.chipb { padding: 7px 13px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; font-weight: 600; font-size: .88rem; }
.chipb b { font: 500 12px var(--mono); color: var(--muted); margin-left: 3px; }
.chipb[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chipb[aria-pressed="true"] b { color: inherit; opacity: .75; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.barra { position: relative; display: block; height: 10px; min-width: 90px; border-radius: 0 5px 5px 0; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.barra i { display: block; height: 100%; background: var(--link); border-radius: 0 4px 4px 0; }
.barra .meio { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
table.desemp { font-size: .92rem; }
table.desemp th { font: 600 .95rem var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); background: none; border-bottom: 1px solid var(--line); }
table.desemp thead th { font: 600 .72rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
table.desemp tr:last-child th { border-bottom: 0; }
table.desemp th small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
table.desemp th a { text-decoration: none; } table.desemp th a:hover { text-decoration: underline; }
table.desemp td { vertical-align: middle; font-weight: 400; }
table.desemp td:first-child { font-weight: 400; }
table.desemp td:has(.barra) { width: 38%; min-width: 110px; }
@media (max-width: 620px) { table.desemp td:has(.barra) { display: none; } table.desemp th, table.desemp td { padding-left: 8px; padding-right: 8px; } }
.num { font: 500 .86rem var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.pt { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.tag { display: inline-block; font: 500 11.5px var(--mono); white-space: nowrap; color: var(--muted); }
.tag.ok { color: var(--ok); } .tag.no { color: var(--accent); }

.aviso { position: fixed; left: 50%; bottom: 76px; z-index: 60; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .93rem; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, .9, .3, 1), opacity .3s; }
.aviso.on { transform: translate(-50%, 0); opacity: 1; }
.dlg { border: 1.5px solid var(--ink); border-radius: 12px; padding: 22px; width: min(92vw, 480px); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.dlg::backdrop { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg[open] { animation: desce .3s cubic-bezier(.2, .9, .3, 1); transform-origin: top; }
.dlg h2 { font-size: 1.4rem; font-weight: 800; font-stretch: 84%; margin-bottom: 10px; }
.dlg-t { font-family: var(--body); font-size: 1.02rem; line-height: 1.5; margin-bottom: 18px; }
.dlg-t p { margin: 0 0 .7em; }
.dlg .acoes { justify-content: flex-end; }

.campo { display: grid; gap: 5px; max-width: 420px; }
.campo > span, .rotulo, fieldset.modos > legend { font: 500 11.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.campo input, .folha-txt { width: 100%; padding: 11px 13px; font: 500 1.02rem var(--display); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 9px; }
.campo input:focus, .folha-txt:focus { outline: none; border-color: var(--link); }
.campo small { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.erro-f { margin: 0; color: var(--accent); font-weight: 600; font-size: .92rem; }
.linha-f { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.linha-f h3 { font-size: 1.05rem; font-weight: 700; }
fieldset.modos { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.modos > legend { padding: 0; margin-bottom: 8px; }
.modos { display: grid; gap: 10px; }
.modo { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; transition: transform .2s, border-color .2s; }
.modo:hover { transform: translateY(-2px); }
.modo:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--accent); }
.modo input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; }
.modo span { font-size: .92rem; line-height: 1.4; color: var(--muted); }
.modo b { display: block; font-size: 1.08rem; color: var(--ink); }
.modo small { display: block; margin-top: 3px; font: 400 12px var(--mono); }

/* ---------- Portaria: cartão de entrada ---------- */
.portaria .wrap { max-width: 900px; display: grid; gap: 28px; justify-items: center; padding-top: clamp(8px, 4vw, 40px); }
.porta { width: min(100%, 540px); perspective: 1300px; animation: desce .5s cubic-bezier(.2, .9, .3, 1) backwards; transform-origin: top; }
.porta-abas { display: flex; gap: 6px; padding: 0 14px; }
.porta-abas button { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 20px 9px; font-weight: 700; font-size: .98rem; color: var(--muted); background: color-mix(in srgb, var(--paper) 55%, transparent); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; transform-origin: bottom; transition: transform .25s cubic-bezier(.2, .8, .2, 1), color .2s; }
.porta-abas button:hover { transform: perspective(500px) rotateX(10deg) translateY(-1px); color: var(--ink); }
.porta-abas button[aria-selected="true"] { color: var(--ink); background: var(--paper); border-color: var(--ink); box-shadow: inset 0 4px 0 var(--accent); position: relative; z-index: 1; margin-bottom: -1.5px; padding-bottom: 10.5px; }
.porta-abas button:focus-visible, .lk:focus-visible { outline: 2.5px solid var(--link); outline-offset: 3px; }
.porta-c { padding: 26px 24px 24px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); backface-visibility: hidden; will-change: transform; }
.porta-c form { display: grid; gap: 16px; }
.porta-c .campo { max-width: none; }
.porta-c .acoes { align-items: center; gap: 12px 18px; }
.porta-c .sub { margin: 0; }
.lk { all: unset; cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.lk:hover { color: var(--ink); }

/* ---------- Faixa do teste grátis ---------- */
.faixa-teste { margin: 0; padding: 8px clamp(16px, 3vw, 32px); font-size: .9rem; line-height: 1.45; background: color-mix(in srgb, var(--amber) 14%, var(--paper)); border-bottom: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line)); animation: desce .45s cubic-bezier(.2, .9, .3, 1); transform-origin: top; }
.faixa-teste a { font-weight: 700; white-space: nowrap; }
html.fora .faixa-teste { display: none; }

/* ---------- Planos ---------- */
.planos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; perspective: 1500px; max-width: 880px; }
.plano { position: relative; display: grid; gap: 10px; align-content: start; grid-template-rows: auto auto auto auto 1fr auto; padding: 24px 22px 22px; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--muted); border-radius: 12px; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .8, .2, 1); animation: pousa .6s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 110ms); }
.plano:hover, .plano:focus-within { transform: translateZ(36px) rotateX(3deg) rotateY(-4deg); }
.plano:nth-child(even):hover, .plano:nth-child(even):focus-within { transform: translateZ(36px) rotateX(3deg) rotateY(4deg); }
.plano.destaque { border-top-color: var(--accent); border-color: var(--ink); border-top-color: var(--accent); }
.plano.destaque::after { content: "Com correção"; position: absolute; top: -17px; right: 18px; padding: 4px 11px; font: 600 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 6px; transform: translateZ(26px) rotate(2deg); }
.plano h2 { font-size: 2rem; font-weight: 800; font-stretch: 80%; line-height: 1; }
.plano-p { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plano-p b { font-weight: 800; font-stretch: 78%; font-size: clamp(2.4rem, 6vw, 3.1rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plano-p span { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plano-v { margin: 0; font-size: .92rem; color: var(--muted); }
.plano ul { list-style: none; margin: 6px 0 8px; padding: 12px 0 0; display: grid; gap: 9px; align-content: start; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.4; }
.plano ul li { position: relative; padding-left: 24px; }
.plano ul li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 11px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plano .acoes .btn { flex: 1; justify-content: center; text-align: center; }

/* ---------- Termos, privacidade e rodapé ---------- */
.rodape-l { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; font-size: .86rem; color: var(--muted); }
.rodape-l a { color: var(--muted); text-underline-offset: 3px; }
.rodape-l a:hover { color: var(--ink); }
.pag-legal main { padding: clamp(22px, 4vw, 44px) clamp(16px, 3vw, 32px) 80px; perspective: 1400px; }
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(22px, 4vw, 44px); background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: 4px 4px 12px 12px; box-shadow: var(--shadow); font-family: var(--body); font-size: 1.04rem; line-height: 1.6; animation: desce .6s cubic-bezier(.2, .9, .3, 1) backwards; transform-origin: top; }
.legal h2 { margin: 1.9em 0 .5em; font-size: 1.3rem; font-weight: 800; font-stretch: 84%; }
.legal p { margin: 0 0 .9em; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: .45em; }
.legal a { color: var(--link); }
.legal .tbl { font-size: 1.05em; }
.legal .acoes { margin-top: 2em; font-family: var(--display); }
.legal .acoes a { color: var(--ink); text-decoration: none; }
.legal .alerta { font-family: var(--display); margin-bottom: 1em; }
.dlg .selo-res { margin: 2px 0 16px; }
.no-motion .legal { animation: none !important; }

/* ---------- Painel do dono ---------- */
.tag { display: inline-block; padding: 2px 8px; font: 500 11px/1.5 var(--mono); letter-spacing: .04em; white-space: nowrap; border: 1px solid var(--amber); color: var(--ink); border-radius: 20px; background: color-mix(in srgb, var(--amber) 12%, transparent); }
.tag.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.tag.no { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.tag.mudo { border-color: var(--line); background: transparent; color: var(--muted); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td small { display: block; font-weight: 400; font-size: .92em; color: var(--muted); overflow-wrap: anywhere; }
table.contas tbody tr[data-u] { cursor: pointer; transition: background .15s; }
table.contas tbody tr[data-u]:hover, table.contas tbody tr[data-u]:focus-visible { background: color-mix(in srgb, var(--link) 10%, transparent); outline: none; }
.ficha { display: grid; gap: 14px; margin: 0 0 20px; padding: 22px; background: var(--paper); border: 1.5px solid var(--ink); border-left: 6px solid var(--accent); border-radius: 4px 12px 12px 4px; box-shadow: var(--shadow); animation: desce .35s cubic-bezier(.2, .9, .3, 1); transform-origin: top; }
.ficha h3 { font-size: 1.45rem; font-weight: 800; font-stretch: 84%; }
.ficha .sub, .ficha .tbl { margin: 0; }
.ficha details summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }
.ficha-f { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; margin-bottom: 14px; }
.ficha .ficha-f { margin: 0; }
.ficha-f .campo { flex: 1 1 200px; max-width: 320px; }
.campo select { width: 100%; padding: 11px 13px; font: 500 1.02rem var(--display); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 9px; }
.campo select:focus { outline: none; border-color: var(--link); }

/* ---------- Início: faixa dos simulados ---------- */
.faixa-sim { margin-top: clamp(30px, 5vw, 56px); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 4px 12px 12px 4px; box-shadow: var(--shadow); }
.faixa-sim h2 { font-size: 1.7rem; font-weight: 800; font-stretch: 80%; margin: 2px 0 4px; }
.faixa-sim p:not(.eyebrow) { margin: 0; color: var(--muted); }
.fm i { display: block; margin-top: 6px; font-style: normal; }

/* ---------- Lista de cadernos ---------- */
.cads { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; perspective: 1400px; }
.cad { position: relative; display: grid; align-content: space-between; gap: 6px; min-height: 148px; padding: 14px 14px 12px 20px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 3px 10px 10px 3px; transform-origin: left center; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; animation: pousa .5s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 22ms); }
@keyframes pousa { from { transform: translateZ(90px) rotateX(-24deg); opacity: 0; } }
.cad::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; border-radius: 3px 0 0 3px; background: repeating-linear-gradient(180deg, var(--steel-front) 0 7px, var(--steel-top) 7px 9px); }
.cad:hover, .cad:focus-visible { transform: translateZ(34px) rotateY(-9deg); box-shadow: var(--shadow); }
.cad-n { font: 600 1.5rem var(--mono); letter-spacing: -.02em; }
.cad-s { display: block; font: 400 11.5px/1.35 var(--mono); color: var(--muted); }
.cad-nota { font-weight: 800; font-stretch: 80%; font-size: 2rem; line-height: 1; }
.cad.aberto::before { background: var(--amber); }
.cad.aberto { border-color: var(--amber); }
.cad.feito::before { background: var(--muted); }
.cad.feito.hab::before { background: var(--ok); }

/* ---------- Capa do simulado ---------- */
.capa-sim { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; perspective: 1600px; }
.caderno { position: relative; padding: clamp(24px, 4vw, 44px) clamp(20px, 3.4vw, 40px) clamp(22px, 3vw, 34px) clamp(34px, 5vw, 58px); background: var(--paper); border: 1px solid var(--line); border-radius: 4px 14px 14px 4px; box-shadow: var(--shadow), 14px 14px 0 -6px var(--page-edge), 14px 14px 0 -5px var(--line); transform: rotateY(7deg) rotateX(2deg); transform-origin: left center; display: grid; gap: 14px; }
.caderno::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, rgb(0 0 0 / .28), transparent), var(--accent); }
.caderno h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .9; font-weight: 800; font-stretch: 78%; letter-spacing: -.02em; }
.caderno h1 span { display: block; color: var(--accent); font-family: var(--mono); font-stretch: 100%; font-weight: 600; letter-spacing: -.04em; }
.cad.trancado { border-style: dashed; background: color-mix(in srgb, var(--paper) 55%, transparent); box-shadow: none; }
.cad.trancado .cad-n, .cad.trancado .cad-s { color: var(--muted); }
.cad.trancado::before { background: var(--line); }
.cad.trancado.feito .cad-nota { opacity: .6; }
.cad-tr { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cad-sub { margin: 0; font: 500 13px var(--mono); color: var(--muted); }
.comp { display: grid; gap: 14px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.comp-b p { margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; font-size: .95rem; }
.comp-b p b { font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.comp-b p span, .comp-b li span { margin-left: auto; font: 600 .9rem var(--mono); }
.comp-b ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 22px; }
.comp-b li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.comp-b li i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.capa-lado { display: grid; gap: 16px; }
.capa-lado h2 { font-size: 1.5rem; font-weight: 800; font-stretch: 82%; }
@media (max-width: 880px) { .capa-sim { grid-template-columns: minmax(0, 1fr); } .caderno { transform: none; } }

/* ---------- Prova ---------- */
.view:has(> .prova) { padding-top: 0; }
.prova-bar { position: sticky; top: 54px; z-index: 20; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 0 calc(clamp(16px, 4vw, 48px) * -1) 22px; padding: 9px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pb-t { font-weight: 800; font-stretch: 84%; font-size: 1.1rem; }
.pb-t small { display: block; font: 400 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pb-rel { font: 600 1.35rem var(--mono); font-variant-numeric: tabular-nums; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 8px; }
.pb-rel.perto { border-color: var(--amber); color: var(--amber); }
.pb-rel.fim { border-color: var(--accent); color: var(--accent); }
.pb-and { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 10px; }
.pb-and .meter { flex: 1; } .pb-and .meter i { background: var(--link); transition: width .3s; }
.pb-and small { font: 500 12px var(--mono); color: var(--muted); }
.prova-bar .nb, .prova-bar .btn { padding: 8px 14px; font-size: .9rem; }
.so-estreito { display: none; }
.prova-corpo { display: grid; grid-template-columns: minmax(0, 800px) 264px; gap: clamp(18px, 3vw, 40px); justify-content: center; align-items: start; perspective: 1500px; }
.prova-corpo.escondido { visibility: hidden; }
.sheet.q { padding: clamp(18px, 3.4vw, 40px) clamp(16px, 3.6vw, 44px); display: grid; gap: 18px; }
.q-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.q-h .eyebrow { color: color-mix(in srgb, var(--c) 60%, var(--ink)); }
.marcar { flex: none; padding: 6px 12px 6px 30px; position: relative; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; font-weight: 600; font-size: .85rem; }
.marcar::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 2px; border: 1.5px solid var(--amber); }
.marcar[aria-pressed="true"] { border-color: var(--amber); }
.marcar[aria-pressed="true"]::before { background: var(--amber); }
.q-e { font-size: var(--fs); }
.q-e > :last-child { margin-bottom: 0; }
.alts { display: grid; gap: 9px; }
.alt { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 12px 14px; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--body); font-size: calc(var(--fs) * .96); line-height: 1.45; transition: transform .16s, border-color .16s, box-shadow .16s; }
.alt:not(:disabled):hover { border-color: var(--ink); transform: translateY(-1px); }
.alt:not(:disabled):active { transform: translateY(1px) scale(.995); }
.alt b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); font: 600 14px var(--mono); }
.alt.sel { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--ink); }
.alt.sel b { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.alt:disabled { cursor: default; color: var(--ink); }
.alt.certa { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--paper)); }
.alt.certa b { background: var(--ok); border-color: var(--ok); color: #fff; }
.alt.certa b::after { content: " ✓"; white-space: pre; font-size: 10px; }
.alt.errada { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--paper)); }
.alt.errada b { background: var(--accent); border-color: var(--accent); color: #fff; }
.alt.errada b::after { content: " ✗"; white-space: pre; font-size: 10px; }
.gab { margin: 0; font-family: var(--body); }
.gab a { color: var(--link); }
.q-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.q-acoes { display: flex; align-items: center; gap: 14px; }
.apoio { border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; background: color-mix(in srgb, var(--c, var(--ink)) 5%, var(--paper)); }
.apoio[open] { padding-bottom: 6px; }
.apoio h3, .apoio-t h3, .apoio-t h4 { font-size: 1.1rem; font-weight: 700; margin: 4px 0 10px; }
.apoio .prose, .apoio-t .prose, .proposta .prose { font-size: calc(var(--fs) * .96); }
.proposta { display: grid; gap: 14px; }
.apoio-t { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
.apoio-t .prose > :last-child { margin-bottom: 0; }
.tema { padding: 14px 16px; border-left: 4px solid var(--accent); font-family: var(--body); }
.tema p { margin: 0 0 8px; }
.tema-t { font: 800 1.35rem/1.2 var(--display) !important; font-stretch: 86% !important; margin: 0 !important; }
.folha-txt { min-height: 300px; resize: vertical; font: 400 var(--fs)/1.75 var(--body); background-image: linear-gradient(transparent calc(1.75em - 1px), var(--line) calc(1.75em - 1px)); background-size: 100% 1.75em; background-attachment: local; background-origin: content-box; }
.conta { margin: 0; font: 500 12.5px var(--mono); color: var(--muted); }
.mapa { position: sticky; top: 122px; max-height: calc(100vh - 140px); overflow: auto; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 8px; }
.mapa-b { margin: 8px 0 0; font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
.grade.larga { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.grade button { position: relative; height: 34px; border-radius: 7px; border: 1.5px solid var(--line); background: transparent; font: 500 12.5px var(--mono); padding: 0; }
.grade button.r { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grade button.m::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 2px; background: var(--amber); border: 2px solid var(--paper); }
.grade button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.grade button.no { background: var(--accent); border-color: var(--accent); color: #fff; }
.grade button.on { outline: 2.5px solid var(--link); outline-offset: 2px; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line); }
.lg.r { background: var(--ink); border-color: var(--ink); } .lg.m { background: var(--amber); border-color: var(--amber); }
.lg.ok { background: var(--ok); border-color: var(--ok); } .lg.no { background: var(--accent); border-color: var(--accent); }
.pausa { position: fixed; inset: 54px 0 0; z-index: 25; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pausa > div { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 30px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); }
.pausa p { margin: 0; }
@media (max-width: 1040px) {
  .prova-corpo { grid-template-columns: minmax(0, 800px); perspective: none; }
  .so-estreito { display: inline-block; }
  .mapa { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 32; max-height: 72vh; border-radius: 16px 16px 0 0; border-width: 1.5px 0 0; border-color: var(--ink); box-shadow: 0 -12px 40px rgb(0 0 0 / .25); transform: translateY(105%); transition: transform .35s cubic-bezier(.2, .9, .3, 1); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .mapa.aberto { transform: none; }
  .grade { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); } .grade button { height: 42px; font-size: 14px; }
}
@media (max-width: 560px) { .pb-t small, .prova-bar [data-pausa] { display: none; } .pb-rel { font-size: 1.1rem; } }

/* ---------- Resultado ---------- */
.res-h { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-end; perspective: 900px; }
.res-h h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .92; font-weight: 800; font-stretch: 78%; letter-spacing: -.02em; margin: 10px 0 12px; }
.res-h h1 span { color: var(--accent); font-variant-numeric: tabular-nums; }
.res-h .lede { margin: 0 0 16px; }
.selo-res { display: inline-block; margin: 0; padding: 8px 16px 7px; border: 3px double currentColor; border-radius: 5px; transform: rotate(-4deg); font: 600 1.05rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.selo-res small { display: block; font-size: 10.5px; letter-spacing: .04em; font-weight: 500; text-transform: none; }
.selo-res.ok { color: var(--ok); } .selo-res.no { color: var(--accent); }
.selo-res.slam { animation: slam2 .65s cubic-bezier(.2, 1.3, .4, 1) .5s backwards; }
@keyframes slam2 { 0% { transform: perspective(700px) translate3d(40px, -60px, 420px) rotateX(56deg) rotate(-24deg); opacity: 0; } 60% { transform: perspective(700px) translate3d(0, 0, 0) rotate(-4deg) scale(1.08); opacity: 1; } 100% { transform: rotate(-4deg); } }
.rever, .atencao { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rever { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rever a { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 2px 8px 8px 2px; text-decoration: none; }
.rever a:hover, .atencao a:hover { border-color: var(--ink); border-left-color: var(--c); }
.rever small, .at-t small { font-size: .82rem; color: var(--muted); }
.atencao a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(70px, 3fr) auto 46px; gap: 14px; align-items: center; padding: 11px 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 2px 8px 8px 2px; text-decoration: none; }
.at-t { display: grid; gap: 2px; min-width: 0; } .at-t b { line-height: 1.2; }
.atencao { counter-reset: at; }
@media (max-width: 620px) { .atencao a { grid-template-columns: minmax(0, 1fr) auto 46px; } .atencao a .barra { display: none; } }
.esc-res { display: grid; gap: 12px; padding: 20px 22px; margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 3px 10px 10px 3px; }
.esc-res > h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 86%; line-height: 1.15; }
.esc-res details { border-top: 1px solid var(--line); }
.esc-res details[open] { padding-bottom: 10px; }
.esc-texto { white-space: pre-wrap; font: 400 var(--fs)/1.7 var(--body); padding: 16px 18px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, var(--paper)); max-height: 460px; overflow: auto; }
.esc-res.corrigindo [data-status] { color: var(--ink); font-weight: 600; animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .45; } }
.espelho { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.espelho li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; margin: 0; }
.espelho b { font: 600 .9rem var(--mono); text-align: right; }
.corr-box { display: grid; gap: 14px; padding: 20px; border: 1.5px solid var(--ink); border-radius: 10px; background: color-mix(in srgb, var(--link) 4%, var(--paper)); animation: desce .45s cubic-bezier(.2, .9, .3, 1); transform-origin: top; }
.corr-nota { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.corr-nota b { font-weight: 800; font-stretch: 80%; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.corr-nota span { color: var(--muted); }
.corr-nota em { font: 500 12px var(--mono); font-style: normal; } .corr-nota em.ok { color: var(--ok); } .corr-nota em.no { color: var(--accent); }
.corr-box h4 { font-size: 1.05rem; font-weight: 700; margin: 6px 0 0; }
.corr-box ul, .corr-box ol { margin: 0; padding-left: 1.3em; font-family: var(--body); line-height: 1.5; }
.corr-box li { margin: .35em 0; }
.corr-geral { margin: 0; font-family: var(--body); font-size: 1.05rem; line-height: 1.55; }
.crit { width: 100%; border-collapse: collapse; }
.crit th, .crit td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.crit th { width: 26%; font-weight: 700; font-size: .95rem; }
.crit-n { width: 70px; font: 600 1.15rem var(--mono); white-space: nowrap; } .crit-n small { font-size: .7em; font-weight: 400; color: var(--muted); }
.crit td p { margin: 8px 0 0; font-family: var(--body); font-size: .96rem; line-height: 1.5; }
.melh blockquote { margin: 0 0 6px; padding: 2px 0 2px 12px; border-left: 3px solid var(--amber); font-style: italic; color: var(--muted); }
.melh p { margin: 0 0 4px; }
.corr-box .co { margin: 0; }
@media (max-width: 620px) { .crit th { width: auto; display: block; padding-bottom: 0; border: 0; } .crit td { display: block; border: 0; padding-top: 4px; } .crit tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; } }
.gqs { display: grid; gap: 6px; }
.gq { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.gq > summary { cursor: pointer; display: grid; grid-template-columns: 34px minmax(90px, 1.2fr) minmax(96px, 1fr) minmax(0, 1.6fr); gap: 10px; align-items: center; padding: 10px 14px; font-size: .92rem; list-style: none; }
.gq > summary::-webkit-details-marker { display: none; }
.gq-n { font: 600 .95rem var(--mono); } .gq-m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gq-st { font-weight: 700; } .gq.ok .gq-st { color: var(--ok); } .gq.no .gq-st { color: var(--accent); } .gq.br .gq-st { color: var(--muted); }
.gq-r { font: 400 12px var(--mono); color: var(--muted); text-align: right; }
.gq[open] > summary { border-bottom: 1px solid var(--line); }
.gq-c { display: grid; gap: 14px; padding: 16px 16px 18px; }
@media (max-width: 620px) { .gq > summary { grid-template-columns: 30px minmax(0, 1fr) auto; } .gq-r { display: none; } }

/* ---------- Estatísticas ---------- */
.graf-c { position: relative; padding: 14px 10px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.graf { display: block; width: 100%; height: auto; touch-action: pan-y; }
.graf [hidden] { display: none; }
.graf .gr { stroke: var(--line); stroke-width: 1; }
.graf .gr.ref { stroke: var(--muted); }
.graf .eixo { font: 500 11px var(--mono); fill: var(--muted); }
.graf .linha { fill: none; stroke: var(--link); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.graf .pto { fill: var(--link); stroke: var(--paper); stroke-width: 2; }
.graf .pto.on { stroke: var(--ink); }
.graf .valor { font: 700 14px var(--display); fill: var(--ink); }
.graf .mira { stroke: var(--muted); stroke-width: 1; }
.dica-g { position: absolute; z-index: 3; pointer-events: none; display: grid; gap: 1px; padding: 9px 12px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: .82rem; white-space: nowrap; box-shadow: var(--shadow); }
.dica-g b { font-size: .92rem; }

/* ---------- Ajustes ---------- */
.ajustes { max-width: 820px; }
.perigo-sec > h2 { border-color: var(--accent); color: var(--accent); }
.ajustes code { font: 500 .88em var(--mono); background: color-mix(in srgb, var(--ink) 8%, transparent); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }

/* ---------- Sem animação ---------- */
.no-motion .cad, .no-motion .plano, .no-motion .porta, .no-motion .porta-abas button, .no-motion .faixa-teste, .no-motion .ficha, .no-motion .selo-res, .no-motion .corr-box, .no-motion .dlg, .no-motion .modo, .no-motion .alt, .no-motion .mapa, .no-motion .aviso { animation: none !important; transition: none !important; }
.no-motion .cad:hover, .no-motion .cad:focus-visible, .no-motion .plano:hover, .no-motion .plano:focus-within, .no-motion .porta-abas button:hover { transform: none; }
.no-motion .caderno { transform: none; }
