/* ¡ADescubrir! — plataforma web
   As cores são as do jogo e do Playground (Azul Frida): azul Casa Azul,
   vermelho-sandía, amarelo do foco, creme. Os cartões e botões imitam o
   vidro do menu inicial do jogo, sobre o salão do museu desfocado. */
:root {
  --blue: #1C64B4;
  --blue-dark: #0F4C8F;
  --navy: #0A1F4A;
  --coral: #C8352B;
  --coral-dark: #A52A22;
  --yellow: #FFC83D;
  --yellow-soft: #FFE7A3;
  --cream: #FDF0D5;
  --ink: #14213D;
  --ink-soft: #4A5568;
  --paper: #FFFFFF;
  --line: #D5DCE6;
  --bg: #EEF3F9;
  --ok: #1E7B45;
  --warn: #8A5A00;
  --err: #B3261E;
  --glass: rgba(14, 38, 96, 0.62);
  --glass-strong: rgba(10, 31, 74, 0.82);
  --glass-line: rgba(255, 255, 255, 0.45);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 31, 74, 0.25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy) url("../img/fondo_museo.jpg") center / cover fixed no-repeat;
  font-size: 17px;
  line-height: 1.5;
}
body::before {               /* o véu azul por cima do museu */
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 31, 74, 0.35), rgba(10, 31, 74, 0.6));
}
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 .8em; }
a { color: var(--blue-dark); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 10px 14px; z-index: 100; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- Barra do alto ---------- */
.topbar {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
  padding: 10px 18px; background: rgba(28, 100, 180, 0.92); color: #fff;
  border-bottom: 2px solid var(--glass-line); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.topbar .brand img { height: 40px; width: auto; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quem { font-size: .92rem; opacity: .95; }
.saudacao { font-size: 1.35rem; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .45); margin: -6px 0 16px; }
.saudacao[hidden] { display: none; }

/* ---------- Botões (vidro, como no menu do jogo) ---------- */
.btn {
  font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: .5em;
  border: 2px solid var(--glass-line); border-radius: 14px; padding: 10px 18px;
  background: var(--glass); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .08s ease, background .15s ease;
}
.btn:hover, .btn:focus-visible { background: rgba(255, 200, 61, 0.92); color: var(--ink); border-color: #fff; }
.btn:active { transform: scale(.98); }
.btn.primary { background: rgba(200, 53, 43, 0.88); }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--yellow); color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: .92rem; border-radius: 10px; }
.btn.big { padding: 16px 30px; font-size: 1.2rem; border-radius: 18px; }
.btn.light { background: var(--paper); color: var(--blue-dark); border-color: var(--line); }
.btn.light:hover, .btn.light:focus-visible { background: var(--yellow); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.lang { min-width: 3.2em; }
/* O seletor de idioma ES · EN · PT (14/out): o idioma atual em amarelo */
.idiomas { display: inline-flex; gap: 4px; }
.idiomas .lang { min-width: 2.8em; padding-left: 8px; padding-right: 8px; }
.idiomas .lang[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: #fff; }

/* ---------- Página ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 24px 18px 60px; }
.page-title { color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); font-size: 2rem; }
.page-sub { color: #fff; opacity: .95; margin-top: -.2em; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: rgba(255, 255, 255, 0.95); border: 2px solid rgba(255, 255, 255, .7); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.card h2 { font-size: 1.25rem; color: var(--blue-dark); }
.card.glass { background: var(--glass-strong); color: #fff; border-color: var(--glass-line); backdrop-filter: blur(10px); }
.card.glass h2 { color: var(--yellow); }
.hint { color: var(--ink-soft); font-size: .92rem; }
.card.glass .hint { color: #DDE6F5; }

/* O código do participante, grande */
.codigo {
  font-family: "Nunito", monospace; font-size: 2.6rem; font-weight: 800; letter-spacing: .18em;
  background: var(--cream); color: var(--ink); border: 3px dashed var(--coral); border-radius: 14px;
  padding: 8px 18px; display: inline-block; margin: 6px 0 10px;
}

/* Números e barras de progresso */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--blue-dark); line-height: 1.1; }
.stat .lbl { font-size: .9rem; color: var(--ink-soft); }
.barra { height: 16px; background: #E3E9F2; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.barra > span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--yellow)); border-radius: 99px; }
.selos { display: flex; flex-wrap: wrap; gap: 6px; }
.selo { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #B9C3D3; display: grid; place-items: center; font-size: .8rem; }
.selo.on { background: var(--coral); border: 2px solid var(--coral-dark); color: #fff; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; font-weight: 800; background: #E3E9F2; color: var(--ink); }
.tag.ok { background: #D8F0E2; color: var(--ok); }
.tag.no { background: #F3E3E1; color: var(--err); }

/* ---------- Formulários ---------- */
form { display: flex; flex-direction: column; gap: 14px; }
label { font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  font: inherit; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid var(--yellow); outline-offset: 1px; }
fieldset { border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; }
legend { font-weight: 800; padding: 0 6px; }
.opcoes { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.opcao { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; background: #fff; }
.opcao:has(input:checked) { border-color: var(--coral); background: #FFF4EC; }
.opcao.off { opacity: .6; cursor: not-allowed; }
.opcao input { margin-top: .3em; accent-color: var(--coral); width: 1.1em; height: 1.1em; }
.opcao small { display: block; font-weight: 400; color: var(--ink-soft); }
/* (28/out) a escolha do modo do taller: narração ou leitor de tela */
.tad-modo { border: 0; padding: 0; margin: 0 0 16px; }
.tad-modo legend { font-weight: 700; margin-bottom: 8px; }
.msg { padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.msg.erro { background: #FBE3E1; color: var(--err); }
.msg.ok { background: #DDF2E5; color: var(--ok); }
.msg.info { background: #E3ECF8; color: var(--blue-dark); }
.passos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; padding: 0; list-style: none; }
.passos li { padding: 4px 12px; border-radius: 99px; background: #E3E9F2; font-weight: 800; font-size: .9rem; }
.passos li[aria-current="step"] { background: var(--yellow); }
.passos li.feito { background: #D8F0E2; }
.abas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.abas [role=tab] { font: inherit; font-weight: 800; padding: 10px 16px; border-radius: 12px 12px 0 0; border: 2px solid var(--glass-line); border-bottom: none; background: var(--glass); color: #fff; cursor: pointer; }
.abas [role=tab][aria-selected=true] { background: #fff; color: var(--blue-dark); border-color: #fff; }

/* ---------- Tabelas ---------- */
.tabela-wrap { overflow: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .92rem; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #E8EEF7; position: sticky; top: 0; font-weight: 800; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: #FFF9E8; }

/* ---------- Home ---------- */
.home { min-height: 100vh; display: flex; flex-direction: column; }
.home-fundo { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding-top: 30px; }
.home .logo-grande { width: min(980px, 92vw); height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
.home .resumo { max-width: 760px; background: var(--glass-strong); color: #fff; border: 2px solid var(--glass-line); border-radius: var(--radius); padding: 20px 26px; backdrop-filter: blur(8px); font-size: 1.12rem; }
.home .acoes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rodape { color: #fff; text-align: center; font-size: .88rem; padding: 14px; opacity: .9; }
.rodape a { color: var(--yellow); }
/* Página inicial mais clara (14/out): o véu azul-claro e leve deixa ver o
   museu, e o resumo fica num azul médio (texto branco com contraste acima
   de 4,5:1); o rodapé ganha uma faixa para continuar legível */
.home::before { background: linear-gradient(180deg, rgba(120, 175, 235, 0.10), rgba(40, 105, 185, 0.28)); }
.home .resumo { background: rgba(24, 84, 160, 0.86); border-color: rgba(255, 255, 255, 0.6); }
.home .rodape { background: rgba(24, 84, 160, 0.78); opacity: 1; }

/* ---------- Tela do jogo (modelo: jogo 80%, notas 20%) ---------- */
body.jogo { overflow: hidden; background: #000; }
body.jogo::before { display: none; }
.app-jogo { position: fixed; inset: 0; display: flex; }
.app-jogo .jogo-area { flex: 1 1 auto; min-width: 0; background: #0B1F4D; display: flex; flex-direction: column; }
.app-jogo .jogo-barra { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: var(--navy); color: #fff; font-size: .9rem; }
.app-jogo .jogo-palco { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center;
  background: #0B1F4D; container-type: size; }
.app-jogo iframe { border: 0; background: #000; display: block;
  width: min(100cqw, calc(100cqh * 16 / 9)); height: min(100cqh, calc(100cqw * 9 / 16)); }
.app-jogo .notas { flex: 0 0 20%; min-width: 280px; max-width: 420px; background: var(--navy); color: #EAF0FA;
  border-left: 3px solid var(--blue); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.notas h2 { color: var(--yellow); font-size: 1.15rem; margin: 0; }
.notas .badge { background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line); border-radius: 10px; padding: 8px 10px; font-size: .85rem; }
.notas label { font-size: .85rem; color: #C9D6EA; }
.notas input, .notas textarea { background: #142a5c; color: #fff; border-color: #2B4B8A; }
.notas textarea { min-height: 110px; resize: vertical; }
.notas .historico { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #2B4B8A; padding-top: 10px; }
.nota { background: rgba(255, 255, 255, .06); border-left: 4px solid var(--yellow); border-radius: 6px; padding: 8px; font-size: .85rem; }
.nota b { color: var(--yellow); }
.notas .ingles { background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); border-radius: 10px; padding: 8px 10px; }
.notas .ingles summary { cursor: pointer; font-weight: 800; color: var(--yellow); }
.notas .ingles .field { margin-top: 8px; }
/* O roteiro das notas (instrumentos v6) */
.notas .roteiro { font-size: .88rem; max-height: 45vh; overflow-y: auto; }
.notas .roteiro h3 { color: var(--yellow); font-size: .85rem; margin: 10px 0 4px; }
.notas .roteiro ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.notas .roteiro p { margin: 8px 0 0; }
.notas .en-auto { display: flex; gap: 6px; align-items: center; font-size: .85rem; margin: 4px 0 8px; }
.notas .en-texto { max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.notas .en-texto p { margin: 0; }
.notas .en-texto small { display: block; color: var(--yellow); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.notas .en-texto .es { display: block; color: #9FB3D6; font-size: .8rem; margin-top: 2px; }
.notas .capturas { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.notas .capturas-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.notas .captura { position: relative; }
.notas .captura img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; border: 1px solid #2B4B8A; display: block; }
.notas .captura button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: var(--yellow); color: #0B1F4D; font-weight: 800; cursor: pointer; line-height: 22px; padding: 0; }

/* ---------- Painel da pesquisa ---------- */
.painel-abas { display: flex; flex-wrap: wrap; gap: 6px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { background: #fff; border-radius: 14px; padding: 14px; border: 2px solid var(--line); }
.kpi .num { font-size: 1.9rem; font-weight: 800; color: var(--blue-dark); }
.kpi .lbl { color: var(--ink-soft); font-size: .88rem; }
.linha { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.linha > .field { min-width: 200px; flex: 1; }
.grafico { position: relative; height: 340px; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.resultado { background: #F6F9FD; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.resultado code { background: #fff; padding: 1px 6px; border-radius: 6px; }
select[multiple] { min-height: 150px; }

/* ---------- Questionários (instrumentos, SUS sobre o jogo) ---------- */
.quest-card { max-width: 900px; margin: 0 auto; }
.quest { display: flex; flex-direction: column; gap: 14px; }
.quest-titulo, .card .quest-titulo { font-size: 1.6rem; color: var(--ink); }
.quest-titulo:focus { outline: none; }
.quest-texto { font-size: 1.12rem; }
/* (27/out) O termo na tela: o texto inteiro, rolável, sem campos de assinatura */
.termo-texto { max-height: 60vh; overflow-y: auto; border: 2px solid var(--line, #d7dbe3); border-radius: 12px; padding: 16px 20px; background: var(--card, #fff); line-height: 1.55; }
.termo-texto:focus-visible { outline: 3px solid #FFC83D; outline-offset: 2px; }
.termo-texto p { margin: 0 0 .7em; }
.termo-titulo { font-weight: 800; font-size: 1.15rem; text-align: center; }
.termo-sub { font-weight: 800; margin-top: 1.1em !important; }
.termo-item { padding-left: 1.1em; text-indent: -1.1em; }
.termo-item::before { content: "• "; }
/* Ao imprimir (ou salvar em PDF) a tela do termo, sai só o texto do termo */
@media print {
  body:has(#tcle) * { visibility: hidden; }
  body:has(#tcle) .termo-texto, body:has(#tcle) .termo-texto * { visibility: visible; }
  body:has(#tcle) .termo-texto { position: absolute; left: 0; top: 0; max-height: none; overflow: visible; border: 0; padding: 0; }
}
.quest-prog { font-weight: 800; color: var(--ink-soft); margin: 0; }
.quest-pergunta { font-weight: 800; color: var(--blue-dark); margin: 0; }
.quest-secao { font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; margin: 0; }
.quest-nota { color: var(--ink-soft); font-style: italic; margin: 0; }
.quest-comp { margin: 0 0 6px 34px; }
.quest-acoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.quest-img { margin: 0; text-align: center; }
.quest-img img { max-width: 100%; max-height: 52vh; border-radius: 12px; border: 3px solid var(--line); }
.quest textarea { min-height: 180px; font-size: 1.05rem; }
.opcoes.uma-coluna { grid-template-columns: 1fr; }
.opcoes.likert { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.opcoes.likert .opcao { flex-direction: column; align-items: center; text-align: center; }
.opcao:focus-within { outline: 4px solid var(--yellow); outline-offset: 2px; }
.opcao.auto { align-self: flex-start; width: fit-content; padding: 6px 10px; font-size: .92rem; background: #F6F9FD; margin-bottom: 8px; }

/* O SUS por cima do jogo */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 31, 74, .78); display: grid; place-items: center; padding: 18px; overflow: auto; }
.modal-caixa { width: min(900px, 100%); max-height: calc(100vh - 36px); overflow: auto; }

/* Painel da pesquisa: a escolha da fase (DBR ou pedagógica) */
/* ---------- Painel da pesquisa: as duas grandes partes (1.20) ----------
   Pesquisa DBR em azul, Pesquisa didática em verde, Usuários e funções em
   cinza-azulado. A faixa e as abas tomam a cor da parte escolhida. */
:root { --dbr: #0F4C8F; --ped: #1E5B3A; --usu: #4A5568; --dash: #A52A22; --crono: #5B3A8C; --area: var(--dbr); }
body[data-area="pedagogico"] { --area: var(--ped); }
body[data-area="dash"] { --area: var(--dash); }
body[data-area="crono"] { --area: var(--crono); }
body[data-area="usuarios"] { --area: var(--usu); }
.areas { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr minmax(170px, .7fr); gap: 12px; margin: 22px 0 0; }
@media (max-width: 1200px) { .areas { grid-template-columns: 1fr 1fr; } }
.area-btn { font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius); padding: 16px 18px; border: 3px solid transparent;
  color: #fff; display: flex; flex-direction: column; gap: 4px; opacity: .78; box-shadow: var(--shadow); }
.area-btn small { font-weight: 400; font-size: .9rem; line-height: 1.3; }
.area-btn .area-nome { font-weight: 800; font-size: 1.35rem; }
.area-btn.area-usu .area-nome { font-size: 1.1rem; }
.area-dbr { background: var(--dbr); }
.area-ped { background: var(--ped); }
.area-usu { background: var(--usu); }
.area-dash { background: var(--dash); }
.area-crono { background: var(--crono); }
.area-btn[aria-pressed="true"] { opacity: 1; border-color: var(--yellow); outline: 0; transform: translateY(-2px); }
.area-btn[aria-pressed="true"] .area-nome::before { content: "▶ "; }
.area-btn:hover, .area-btn:focus-visible { opacity: 1; }
.area-faixa { background: var(--area); color: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: 14px 18px; margin: 0 0 14px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; border-top: 6px solid var(--yellow); }
.area-faixa h2 { margin: 0; color: #fff; font-size: 1.3rem; }
.area-faixa .hint { color: #E8EEF7; margin: 0; flex: 1 1 260px; }
.nivel { display: flex; gap: 6px; }
.filtro-ciclos { margin: 6px 0 10px; padding: 8px 12px; }
.filtro-ciclos legend { font-weight: 800; font-size: .95rem; }
.filtro-ciclos .linha { gap: 6px 16px; align-items: center; }
.filtro-ciclos label.opcao { margin: 0; padding: 6px 10px; color: var(--ink); }
.nivel button { font: inherit; font-weight: 800; padding: 8px 14px; border-radius: 10px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.nivel button[aria-pressed="true"] { background: #fff; color: var(--area); }
body[data-area] .abas [role=tab][aria-selected=true] { color: var(--area); }
.aviso-fase { background: #FFF4D6; border: 2px solid var(--yellow); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Correção das audiodescrições (rubrica) ---------- */
.corr { max-width: 1240px; margin: 18px auto 0; }
.corr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.corr-texto { position: sticky; top: 76px; }
.corr-redacao { margin: 0; background: var(--cream); border-left: 5px solid var(--coral); border-radius: 10px; padding: 14px 16px;
  font-size: 1.15rem; line-height: 1.6; white-space: normal; max-height: 50vh; overflow-y: auto; }
.corr-rubrica { gap: 10px; }
.corr-crit { padding: 10px 12px; }
.corr-crit.fixo { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #F6F9FD; }
.corr-crit.divergente { border-color: var(--coral); background: #FFF6EE; }
.corr-notas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.corr-notas.dois { grid-template-columns: 1fr 1fr; }
.corr-nota { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: center; }
.corr-nota input { position: absolute; opacity: 0; pointer-events: none; }
.corr-nota .n { font-size: 1.4rem; font-weight: 800; color: var(--blue-dark); line-height: 1; }
.corr-nota .lv { font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.corr-nota:has(input:checked) { background: var(--blue-dark); border-color: var(--blue-dark); }
.corr-nota:has(input:checked) .n, .corr-nota:has(input:checked) .lv { color: #fff; }
.corr-nota:focus-within { outline: 4px solid var(--yellow); outline-offset: 2px; }
.corr-nota.largo { align-items: flex-start; text-align: left; padding: 10px 12px; }
.corr-nota .desc-fixa { font-size: .88rem; font-weight: 400; color: inherit; margin-top: 4px; }
.corr-nota:has(input:checked) .desc-fixa { color: #fff; }
/* O descritor: aparece ao passar o mouse ou com o foco do teclado */
.corr-tip { display: none; position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: min(300px, 70vw); background: var(--navy); color: #fff; font-size: .88rem; font-weight: 400; text-align: left;
  border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); }
.corr-nota:hover .corr-tip, .corr-nota:focus-within .corr-tip { display: block; }
.corr-notas .corr-nota:first-child .corr-tip { left: 0; transform: none; }
.corr-notas .corr-nota:last-child .corr-tip { left: auto; right: 0; transform: none; }
.corr-desc { min-height: 1.4em; margin: 6px 0 0; }
.corr-total { font-size: 1.15rem; margin: 4px 0 0; }

/* ---------- Percurso do estudante ---------- */
.percurso { margin-bottom: 18px; }
.percurso-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.percurso-passos li { display: flex; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.percurso-passos li.proximo { border-color: var(--coral); background: #FFF6EE; box-shadow: 0 0 0 3px rgba(200, 53, 43, .15); }
.percurso-passos li.feito { background: #F2FAF5; }
.percurso-passos .num { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--blue-dark); color: #fff; display: grid; place-items: center; font-weight: 800; }
.percurso-passos li.feito .num { background: var(--ok); }
.percurso-passos .corpo { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.percurso-passos h3 { font-size: 1.05rem; margin: 0; }
.percurso-passos .hint { margin: 0; }

/* ---------- Taller ---------- */
.tad { max-width: 1180px; margin: 0 auto; }
/* Avaliadores e a pesquisa (14/out): o curso com a coluna de notas ao lado */
main:has(.tad-layout.com-notas) { max-width: 1560px; }
.tad-layout.com-notas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 18px; align-items: start; }
.tad-layout .notas { background: var(--navy); color: #EAF0FA; border-radius: 16px; padding: 16px; display: flex; flex-direction: column;
  gap: 12px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.tad-layout .notas .historico { max-height: 40vh; }
.tad-codigo { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 8px; background: var(--navy); color: var(--yellow);
  font-weight: 800; font-size: .85rem; letter-spacing: .04em; }
@media (max-width: 900px) { .tad-layout.com-notas { grid-template-columns: 1fr; } .tad-layout .notas { position: static; max-height: none; } }
.tad-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tad-ilu { background: #0F2D66; border-radius: 16px; padding: 16px; min-height: 260px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.tad-fichas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.tad-fichas.grande .tad-ficha { font-size: 1.4rem; padding: 26px 28px; }
.tad-ficha { background: #24457F; color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 800; transition: transform .3s; }
.tad-ficha.on { background: var(--yellow); color: var(--ink); transform: scale(1.06); }
.tad-seta { color: #C9D6EA; font-size: 1.5rem; }
.tad-pers { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tad-p { width: 120px; text-align: center; color: #fff; font-weight: 800; font-size: .9rem; opacity: .55; transition: opacity .3s; }
.tad-p.on { opacity: 1; }
.tad-p img { width: 100%; height: 130px; object-fit: contain; }
.tad-voce { display: grid; place-items: center; height: 130px; font-size: 3rem; border: 3px dashed #C9D6EA; border-radius: 12px; }
.tad-cena { position: relative; border-radius: 12px; overflow: hidden; }
.tad-cena > img:first-child { width: 100%; display: block; }
.tad-mateo { position: absolute; left: 50%; bottom: 0; height: 80%; transform: translateX(-50%); }
.tad-adbox { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(10, 31, 74, .88); color: #fff; padding: 10px 14px; font-weight: 700; border-top: 3px solid var(--yellow); }
.tad-logo { max-width: 70%; margin: 0 auto; display: block; }
.tad-escala { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.tad-lado { display: flex; flex-direction: column; gap: 12px; }
.tad-passos { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.tad-passos li { color: var(--ink-soft); }
.tad-passos li.atual { color: var(--ink); font-weight: 800; font-size: 1.12rem; }
.tad-frase { background: var(--cream); border-radius: 12px; padding: 10px 14px; font-size: 1.1rem; }
.tad-feedback { border-radius: 12px; padding: 12px 14px; background: #E3ECF8; }
.tad-feedback.ok { background: #DDF2E5; }
.tad-feedback.no { background: #FBE9E7; }
.tad-fonte { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .92rem; color: var(--ink-soft); }
.tad-fonte details { margin-top: 6px; }
.tad-fonte summary { cursor: pointer; font-weight: 800; color: var(--blue-dark); }
.tad-logo-demo { margin: 0; text-align: center; background: #1C64B4; border-radius: 12px; padding: 16px; }
.tad-logo-demo img { max-width: 80%; }

@media (max-width: 760px) {
  .tad-grid, .corr-grid { grid-template-columns: 1fr; }
  .corr-texto { position: static; }
  .app-jogo { flex-direction: column; }
  .app-jogo .notas { flex: 0 0 auto; max-width: none; min-width: 0; max-height: 45vh; border-left: 0; border-top: 3px solid var(--blue); }
  .codigo { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Painel da pesquisa: Análises da tese (estilo jamovi) ---------- */
.tese { display: grid; grid-template-columns: 220px 300px minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.tese-menu { display: flex; flex-direction: column; gap: 4px; background: #F6F9FD; border: 1px solid var(--line); border-radius: 12px; padding: 10px; position: sticky; top: 10px; }
.tese-grupo { margin: 10px 4px 2px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #4A5568; }
.tese-grupo:first-child { margin-top: 0; }
.tese-item { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .92rem; cursor: pointer; color: inherit; }
.tese-item:hover { background: #fff; border-color: var(--line); }
.tese-item[aria-pressed="true"] { background: #1C64B4; color: #fff; font-weight: 700; }
.tese-item:focus-visible { outline: 3px solid #F3AB06; outline-offset: 1px; }
.tese-opcoes { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.tese-opcoes h3 { margin: 0; }
.tese-opcoes .hint { margin: 0; }
.tese-opcoes fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 8px; margin: 0; }
.tese-checks { display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.tese-checks .opcao, .tese-opcoes > .opcao { padding: 2px 0; font-size: .9rem; }
.tese-itens { border-top: 1px dashed var(--line); padding-top: 10px; }
.tese-saida { display: grid; gap: 18px; min-width: 0; }
.tese-bloco { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; background: #fff; min-width: 0; }
.tese-bloco > * { min-width: 0; }
.tese-bloco h3 { margin: 0; }
table.apa { min-width: 440px; border-collapse: collapse; border-top: 2px solid #222; border-bottom: 2px solid #222; font-size: .9rem; width: auto; }
table.apa caption { caption-side: top; text-align: left; padding: 0 0 6px; font-size: .95rem; }
table.apa th { border-bottom: 1px solid #222; padding: 4px 10px; text-align: center; font-weight: 700; background: none; white-space: nowrap; }
table.apa td { padding: 3px 10px; border: 0; white-space: nowrap; }
table.apa td.n { text-align: center; font-variant-numeric: tabular-nums; }
.apa-nota { font-size: .85rem; margin: 6px 0 0; color: #333; max-width: 900px; }
.tese-alertas { margin: 0; padding: 8px 12px 8px 30px; background: #FFF6E0; border: 1px solid #F3AB06; border-radius: 10px; font-size: .9rem; }
.tese-alertas li { margin: 2px 0; }
.tese-sintaxe summary { cursor: pointer; font-weight: 700; }
.tese-sintaxe pre { background: #1E2430; color: #F3F4F6; padding: 10px 12px; border-radius: 8px; overflow: auto; font-size: .82rem; }
.tese-jamovi { margin-top: 18px; }
@media (max-width: 1100px) {
  .tese { grid-template-columns: 1fr; }
  .tese-menu { position: static; flex-direction: row; flex-wrap: wrap; }
  .tese-grupo { width: 100%; }
}
.tese-opcoes .opcao { border: 0; background: none; box-shadow: none; padding: 3px 2px; font-weight: 400; gap: 8px; align-items: flex-start; }
.tese-opcoes .opcao:has(input:checked) { background: none; border: 0; }
.tese-opcoes .opcao input { margin-top: 3px; }

/* ===== A validação de conteúdo pelos juízes (validacao.html, 14/out) ===== */
.val-main { max-width: 1180px; }
.val-topo { text-align: center; padding: 18px 0 6px; }
.val-topo .page-title { margin: 8px 0 4px; }
.val-topo .hint { color: #E8EEF8; }
.val-logo { max-width: 260px; height: auto; }
.val-escala { max-width: 520px; margin-top: 8px; }
.val-progresso { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: var(--glass-strong); color: #fff; padding: 10px 16px; border-radius: 12px; margin: 14px 0; font-weight: 800; }
.val-progresso .hint { color: #DDE6F5; font-weight: 700; }
.val-item { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 2px solid var(--line); }
.val-texto h3 { margin: 2px 0 8px; font-size: 1.08rem; color: var(--ink); }
.val-num { display: inline-block; min-width: 3.2em; color: var(--blue-dark); }
.val-l { margin: 2px 0; }
.val-l.cinza { color: var(--ink-soft); font-size: .9rem; font-style: italic; }
.val-l.nota { font-style: italic; }
.val-l.opcao { border: 0; padding: 0 0 0 10px; background: none; font-weight: 400; cursor: default; display: block; }
.val-l.comp { padding-left: 30px; color: var(--ink-soft); }
.val-l.certa { color: var(--ok); font-weight: 800; }
.val-img { margin: 8px 0; }
.val-img img { display: block; width: 100%; height: auto; border-radius: 10px; border: 2px solid var(--line); cursor: zoom-in; }
.val-img a:focus-visible img { outline: 3px solid var(--blue-dark); outline-offset: 2px; }
.val-img figcaption .val-l { display: block; margin-top: 6px; }
.val-crit { border: 0; padding: 0; margin: 0 0 10px; }
.val-crit legend { font-weight: 800; color: var(--blue-dark); margin-bottom: 4px; }
.val-notas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.val-nota { padding: 6px 8px; font-size: .86rem; font-weight: 700; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.val-nota input { margin: 0; }
.val-refs li { margin-bottom: 6px; }
@media (max-width: 820px) {
  .val-item { grid-template-columns: 1fr; }
  .val-notas { grid-template-columns: repeat(2, 1fr); }
}

.val-lido { border-left: 6px solid var(--ok); }
.val-selo { display: inline-block; background: #E3F2E9; color: var(--ok); font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.val-item-lido { grid-template-columns: 1fr; }
.val-lido details summary { cursor: pointer; font-weight: 800; color: var(--blue-dark); margin: 6px 0; }

/* No painel: o IVC abaixo do mínimo */
.ivc-baixo { color: var(--err); font-weight: 800; }

/* ===== O plano da pesquisa: Dashboard geral e Cronograma (14/out) ===== */
.pl-topo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.pl-periodo h2 { margin-top: 0; }
.pl-salvo { color: #E8EEF8; margin: 4px 0 10px; min-height: 1.2em; }
.pl-barra { display: block; height: 10px; background: #E3E8F0; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.pl-barra > span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pl-card { font: inherit; text-align: left; cursor: pointer; background: #fff; border: 2px solid var(--line); border-left: 8px solid #9AA9A6; border-radius: 14px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.pl-card:hover, .pl-card:focus-visible { border-color: var(--area); outline: 3px solid var(--yellow); outline-offset: 1px; }
.pl-card.sit-andamento { border-left-color: var(--blue); }
.pl-card.sit-concluida { border-left-color: var(--ok); }
.pl-card.sit-pausada { border-left-color: var(--warn); }
.pl-num { font-weight: 800; color: var(--area); font-size: .9rem; }
.pl-tit { font-weight: 800; font-size: 1.05rem; }
.pl-meta { color: var(--ink-soft); font-size: .88rem; }
.pl-prox { font-size: .88rem; }
.pl-sit { font-weight: 800; }
td .pl-sit { padding: 2px 8px; border-radius: 99px; background: #EEF1F5; font-size: .88rem; }
td .pl-sit.sit-andamento { background: #E2ECF8; color: var(--blue-dark); }
td .pl-sit.sit-concluida { background: #E3F2E9; color: var(--ok); }
td .pl-sit.sit-pausada { background: #FFF1D6; color: var(--warn); }
.pl-duas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.pl-afazer h4 { margin: 12px 0 4px; }
.pl-afazer ul, #pl-ideias ul { margin: 0; padding-left: 20px; }
.pl-afazer li { margin: 3px 0; }
.pl-atras-t, .pl-atras a { color: var(--err); }
.pl-gantt { --pl-nome: 260px; position: relative; font-size: .88rem; }
.pl-g-linha { display: flex; align-items: center; min-height: 28px; border-bottom: 1px solid #EEF1F5; }
.pl-g-nome { flex: 0 0 var(--pl-nome); padding-right: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-g-faixa { position: relative; flex: 1; height: 22px; display: flex; }
.pl-g-meses .pl-g-faixa { height: auto; }
.pl-g-mes { border-left: 1px solid var(--line); padding-left: 4px; color: var(--ink-soft); font-weight: 700; white-space: nowrap; overflow: hidden; }
.pl-g-barra { position: absolute; top: 4px; height: 14px; border-radius: 7px; background: #B9C6D8; overflow: hidden; }
.pl-g-barra > span { display: block; height: 100%; background: rgba(10, 31, 74, .55); }
.pl-g-barra.sit-andamento { background: #8FB3E0; }
.pl-g-barra.sit-concluida { background: #8CC9A3; }
.pl-g-osu { background: var(--yellow-soft); border: 1px solid var(--warn); }
.pl-g-marco { position: absolute; top: 0; transform: translateX(-50%); color: var(--coral); font-size: 1.1rem; }
.pl-g-sem { position: absolute; left: 6px; top: 2px; }
.pl-g-hoje { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--err); pointer-events: none; }
.pl-subs { display: flex; flex-direction: column; gap: 10px; }
.pl-sub { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.pl-sub.feita { background: #F2F9F4; border-color: #BFE0CA; }
.pl-sub.feita .pl-sub-tit { text-decoration: line-through; color: var(--ink-soft); }
.pl-sub-topo { display: flex; gap: 8px; align-items: center; }
.pl-feito { margin: 0; padding: 6px 8px; }
.pl-sub-tit { flex: 1; font-weight: 800; }
.pl-sub-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.pl-sub-campos .pl-f-textolongo { grid-column: 1 / -1; }
.pl-ideias li { margin: 6px 0; }
@media (max-width: 900px) { .pl-topo, .pl-duas { grid-template-columns: 1fr; } .pl-gantt { --pl-nome: 150px; } }

/* ---------- Painel do professor (18/out) ---------- */
.pf-atencao, .pf-aulas, .pf-lista { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.pf-atencao { list-style: none; padding-left: 0; }
.pf-atencao li { padding: 8px 12px; border-left: 4px solid var(--coral); background: #FFF6EE; border-radius: 8px; }
.pf-aulas { list-style: none; padding-left: 0; }
.pf-aulas li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-aulas label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.pf-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--blue-dark); text-decoration: underline; cursor: pointer; }
.pf-ord { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; cursor: pointer; }
.pf-ord:hover, .pf-ord:focus-visible { text-decoration: underline; }
.pf-acoes { min-width: 150px; }
.pf-acoes .btn { margin: 2px 0; display: block; width: 100%; }
.pf-topo { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); }
@media (max-width: 820px) { .pf-topo { grid-template-columns: 1fr; } }
tr.pf-fora td { color: var(--ink-soft); }
.pf-vocab .card { padding: 14px; }
.pf-vocab h4 { margin: 0 0 8px; color: var(--blue-dark); }
.pf-palavras { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-prod { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.pf-prod blockquote { margin: 6px 0; font-style: italic; white-space: pre-wrap; }
details > summary { cursor: pointer; font-weight: 800; color: var(--blue-dark); }

/* As três caixas de jogos no painel (19/out) */
.caixas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.caixa { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.caixa.fechada { background: #F4F6FA; }
.caixa .selos { margin-top: 6px; }
.caixa .hint { margin: 4px 0 0; }

/* Painel da pesquisa (21/out): blocos recolhíveis e barra fixa de salvar na
   Configuração da coleta; ações dos avaliadores numa linha só */
.cfg-topo { align-items: center; margin-bottom: 8px; }
.fs-alternar { background: none; border: 0; font: inherit; font-weight: 800; color: inherit; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.fs-alternar:hover { text-decoration: underline; }
.fs-seta { display: inline-block; transition: transform .15s; }
fieldset.recolhido > :not(legend) { display: none !important; }
fieldset.recolhido { padding-bottom: 2px; }
fieldset.recolhido .fs-seta { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .fs-seta { transition: none; } }
.barra-salvar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: flex-end;
  margin-top: 16px; padding: 12px 16px; background: rgba(255, 255, 255, 0.97); border: 2px solid var(--line); border-radius: 14px;
  box-shadow: 0 -8px 20px rgba(10, 31, 74, 0.12); }
.barra-salvar .msg { flex: 1 1 100%; margin: 0; }
.barra-salvar.suja { border-color: var(--yellow); background: #FFF8E6; }
.cfg-sujo { font-weight: 700; color: var(--ink-soft); }
.barra-salvar.suja .cfg-sujo { color: var(--ink); }
#av-lista td.acoes { white-space: nowrap; }
/* O roteiro das notas (21/out): a captura legendada do painel e os grupos */
.notas .roteiro h4, .roteiro h4 { margin: 10px 0 4px; font-size: .9rem; color: var(--yellow); }
.roteiro-fig { margin: 6px 0; }
.roteiro-fig img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--glass-line); display: block; }
.roteiro-legenda { margin: 6px 0 10px; padding-left: 1.4em; font-size: .85rem; }
.roteiro-nota { display: block; font-size: .82rem; opacity: .85; margin-top: 2px; }
/* A validação em rodadas (21/out): a redação da rodada anterior em destaque */
.val-l.anterior { border-left: 4px solid var(--line); padding: 4px 0 4px 10px; margin: 6px 0; }
.vp-rodadas { margin: 6px 0 12px; }
.vp-rodadas button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
