:root{
  --roxo:#261062; --roxo2:#391694; --turq:#00a6a4; --fundo:#FBF9FF; --card:#fff;
  --texto:#24153E; --mudo:#6F667E; --borda:rgba(57,22,148,.16); --erro:#B00040; --ok:#0B7A5A;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fundo);color:var(--texto);font:17px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;min-height:100vh;display:flex;flex-direction:column}
.topo{position:sticky;top:0;background:rgba(251,249,255,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--borda);z-index:5}
.topo-in{max-width:46rem;margin:0 auto;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.marca{font-weight:800;color:var(--roxo);letter-spacing:.02em}
.marca small{font-weight:600;color:var(--turq);font-size:.8em}
.salvo{font-size:.85rem;color:var(--mudo)}
.salvo.ok{color:var(--ok)} .salvo.erro{color:var(--erro)}
.barra{height:4px;background:rgba(57,22,148,.1)}
.barra-in{height:100%;width:0;background:linear-gradient(90deg,var(--roxo2),var(--turq));transition:width .25s}
.conteudo{flex:1;width:100%;max-width:46rem;margin:0 auto;padding:28px 16px 40px;outline:none}
h1{font-size:1.75rem;line-height:1.25;color:var(--roxo);margin:0 0 .5rem}
h2{font-size:1.3rem;color:var(--roxo);margin:0 0 .35rem}
p{margin:.25rem 0 1rem}
.mudo{color:var(--mudo)}
.cartao{background:var(--card);border:1px solid var(--borda);border-radius:14px;padding:20px;margin:16px 0}
.aviso{border-left:4px solid var(--turq);background:#fff;padding:12px 16px;border-radius:8px;margin:16px 0}
label.campo{display:block;font-weight:600;margin-bottom:6px}
input[type=text]{width:100%;padding:14px 16px;font:inherit;font-size:1.2rem;letter-spacing:.12em;text-transform:uppercase;text-align:center;border:1px solid var(--borda);border-radius:10px;background:#fff;color:var(--texto)}
input[type=text]:focus,textarea:focus{outline:3px solid rgba(0,166,164,.35);border-color:var(--turq)}
textarea{width:100%;min-height:96px;padding:12px 14px;font:inherit;border:1px solid var(--borda);border-radius:10px;background:#fff;color:var(--texto);resize:vertical}
button,.botao{font:inherit;font-weight:700;border-radius:10px;border:0;padding:13px 22px;cursor:pointer;background:linear-gradient(135deg,var(--roxo),var(--roxo2));color:#fff;min-height:48px}
button:hover{filter:brightness(1.08)}
button:focus-visible{outline:3px solid rgba(0,166,164,.5);outline-offset:2px}
button[disabled]{opacity:.45;cursor:not-allowed;filter:none}
button.sec{background:#fff;color:var(--roxo);border:1px solid var(--borda)}
.acoes{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-top:24px}
.erro-msg{color:var(--erro);font-weight:600;min-height:1.4em;margin-top:10px}
.pergunta{border:0;padding:0;margin:0 0 26px}
.pergunta legend{font-weight:600;padding:0;margin-bottom:10px;font-size:1.05rem}
.pergunta.pendente legend::after{content:" *";color:var(--erro)}
.opcoes{display:flex;flex-direction:column;gap:8px}
.opcao{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--borda);border-radius:10px;padding:11px 14px;cursor:pointer;min-height:48px}
.opcao:hover{border-color:var(--roxo2)}
.opcao input{width:20px;height:20px;accent-color:var(--roxo2);flex:none}
.opcao:has(input:checked){border-color:var(--roxo2);background:rgba(57,22,148,.06)}
.escala{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.escala .opcao{flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:10px 4px;font-size:.9rem}
.escala .num{font-weight:800;font-size:1.1rem}
.extremos{display:flex;justify-content:space-between;font-size:.82rem;color:var(--mudo);margin-top:6px}
@media(max-width:520px){.escala{grid-template-columns:1fr}.escala .opcao{flex-direction:row;justify-content:flex-start;text-align:left}.extremos{display:none}}
.rodape{max-width:46rem;margin:0 auto;padding:16px;font-size:.82rem;color:var(--mudo);border-top:1px solid var(--borda);width:100%}
.lista-falta{margin:.5rem 0 0;padding-left:1.1rem}
.visually-hidden{position:absolute;left:-9999px}
.spinner{display:inline-block;width:18px;height:18px;border:3px solid var(--borda);border-top-color:var(--roxo2);border-radius:50%;animation:g .8s linear infinite;vertical-align:-3px;margin-right:8px}
@keyframes g{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}.barra-in{transition:none}}
