/* =====================================================================
   Ágora — acabamento "premium", inspirado na logo
   Azul-marinho profundo, azul-celeste e dourado; títulos em Montserrat.
   Só usa os tokens (--ag-*): os temas da aba Aparência continuam valendo.
   ===================================================================== */

/* ---------- tipografia ---------- */
body { font-family: var(--ag-fonte-texto); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, .marca-nome { font-family: var(--ag-fonte-titulo); }
h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 700; letter-spacing: -.015em; }
h3 { font-weight: 700; letter-spacing: -.005em; }

/* ---------- menu lateral ---------- */
.lateral {
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--ag-destaque) 26%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--ag-menu-fundo) 0%, var(--ag-menu-fundo-2) 100%);
  border-right: 1px solid color-mix(in srgb, var(--ag-secundaria) 28%, transparent);
}
html.ag-menu-claro .lateral { background: var(--ag-menu-fundo); border-right-color: var(--ag-borda); }
.lateral .marca-linha { gap: .5rem; padding-bottom: .2rem; }
.lateral .marca-logo, .marca-logo {
  width: 76px; height: 76px; border-radius: 0; object-fit: contain; background: none; box-shadow: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}
.lateral .marca-nome {
  font-weight: 800; font-size: 1.9rem; letter-spacing: .08em; line-height: 1; color: #fff; position: relative; padding-bottom: .35rem;
}
html.ag-menu-claro .lateral .marca-nome { color: var(--ag-primaria); }
/* o arco dourado da logo, embaixo do nome */
.lateral .marca-nome::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 64%; height: 3px; transform: translateX(-50%); border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--ag-secundaria) 22%, var(--ag-secundaria) 78%, transparent);
}
.lateral .marca-sub {
  font-family: var(--ag-fonte-titulo); font-weight: 600; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  line-height: 1.45; max-width: 14rem; margin-top: .45rem;
}
.nav-item { font-weight: 600; transition: background var(--ag-transicao), color var(--ag-transicao), transform var(--ag-transicao); }
.nav-item:hover { transform: translateX(2px); }
.nav-item.ativo {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ag-menu-ativo) 82%, #fff) 0%, var(--ag-menu-ativo) 55%, color-mix(in srgb, var(--ag-menu-ativo) 82%, #000) 100%);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--ag-menu-ativo) 90%, #000), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.rotulo-lateral { letter-spacing: .12em; }
@media (max-width: 900px) { .lateral .marca-logo { width: 62px; height: 62px; } .lateral .marca-nome { font-size: 1.6rem; } }
html.ag-menu-compacto .lateral .marca-logo { width: 46px; height: 46px; }

/* ---------- botões ---------- */
/* brilho por cima da cor de cada botão (não troca a cor: vale para azul, vermelho, dourado…) */
.btn:not(.btn-sec):not(.btn-fantasma):not(.btn-link):not(.btn-claro):not(.btn-exp) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .06) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 18px -10px rgba(6, 30, 60, .55);
}
.btn { font-weight: 700; letter-spacing: .005em; transition: transform var(--ag-transicao), box-shadow var(--ag-transicao), filter var(--ag-transicao), background-color var(--ag-transicao); }
.btn:not(.btn-sec):not(.btn-fantasma):not(.btn-link):not(.btn-claro):not(.btn-exp):hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 14px 24px -12px rgba(6, 30, 60, .6); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-sec { font-weight: 700; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ag-foco) 85%, transparent); outline-offset: 2px; }

/* ---------- cartões ---------- */
.bloco, .turma-cartao, .cartao-item, .acao, .resumo-num {
  border: 1px solid var(--ag-borda);
  box-shadow: 0 1px 2px rgba(11, 30, 60, .04), 0 10px 28px -18px rgba(11, 30, 60, .22);
}
html.ag-escuro .bloco, html.ag-escuro .turma-cartao, html.ag-escuro .cartao-item, html.ag-escuro .acao { box-shadow: var(--ag-sombra); }
.acao { transition: transform var(--ag-transicao), box-shadow var(--ag-transicao), border-color var(--ag-transicao); }
.acao:hover { box-shadow: 0 2px 4px rgba(11, 30, 60, .05), 0 18px 34px -18px rgba(11, 30, 60, .35); }
.acao-ic { color: var(--ag-primaria); }
.acao:hover .acao-ic { color: var(--ag-destaque); }

/* ---------- boas-vindas (hero) ---------- */
.hero {
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--ag-destaque) 45%, transparent) 0%, transparent 60%),
    radial-gradient(50% 90% at 0% 100%, color-mix(in srgb, var(--ag-secundaria) 22%, transparent) 0%, transparent 65%),
    linear-gradient(120deg, var(--ag-primaria-escura) 0%, var(--ag-primaria) 70%);
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--ag-primaria-escura) 90%, #000);
  border: 1px solid color-mix(in srgb, var(--ag-secundaria) 22%, transparent);
}
.hero h1 { font-weight: 800; letter-spacing: -.025em; }
.hero-frase { font-family: var(--ag-fonte-texto); font-style: italic; opacity: .85; }
.hero-logo { border-radius: 0 !important; background: none !important; box-shadow: none !important; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
html.ag-escuro img.marca-logo, html.ag-escuro .hero-logo { background: none; }

/* ---------- telas de entrada (aluno e professor) ---------- */
body.pagina-entrada { background: var(--ag-fundo); }
/* fundo com as cores da marca (curvas azuis e douradas, símbolo em marca-d'água) */
.entrada.com-capa .capa::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 42%, rgba(255, 255, 255, .45) 0%, transparent 70%); }
.capa img { object-position: 70% 50%; filter: none; }
@media (max-width: 700px) { .capa img { object-position: 60% 50%; } }
.entrada-logo-link { display: block; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 14px; transition: transform .2s; }
.entrada-logo-link:hover { transform: scale(1.02); }
.entrada-logo-link:focus-visible { outline: 3px solid #F2B724; outline-offset: 4px; }
.entrada-logo { display: block; width: min(100%, 400px); height: auto; margin: 0 auto .4rem; filter: drop-shadow(0 10px 18px rgba(11, 59, 112, .16)); }
.entrada.com-capa .entrada-cartoes { width: min(100%, 460px); padding: 1.2rem 0 2rem; }
.cartao-entrada, .entrada.com-capa .cartao-entrada {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--ag-borda); border-top: 0; position: relative; overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(11, 30, 60, .05), 0 30px 60px -28px rgba(11, 30, 60, .38);
  backdrop-filter: blur(6px);
}
.cartao-entrada::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--ag-primaria) 0%, var(--ag-destaque) 50%, var(--ag-secundaria) 100%);
}
.cartao-entrada h2 { font-weight: 800; font-size: 1.45rem; color: var(--ag-primaria); }
.frase-anisio { color: var(--ag-texto-2); }
@media (max-width: 520px) { .entrada-logo { width: min(86%, 320px); } }

/* ---------- topo do aluno ---------- */
.topo-marca { align-items: center; font-family: var(--ag-fonte-titulo); letter-spacing: .02em; }
.topo-simbolo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }

/* ---------- coordenação ---------- */
.cd-entrada-arte img { width: 120px !important; height: 120px !important; object-fit: contain; border-radius: 0; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
.cd-entrada-arte h1 { font-family: "Montserrat", "Inter", sans-serif; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cd-marca img { object-fit: contain; border-radius: 0; }

/* ---------- detalhes ---------- */
::selection { background: color-mix(in srgb, var(--ag-secundaria) 40%, transparent); }
.selo, .chip { font-weight: 700; }

/* ---------- acessibilidade (contraste mínimo WCAG AA) ---------- */
.perfil-foto.vazia, .topo-perfil .perfil-foto.vazia { background: linear-gradient(135deg, color-mix(in srgb, var(--ag-secundaria) 85%, #fff), var(--ag-secundaria)); color: #1B1406; }
.data-bolha small { color: var(--ag-texto-2); }
.t-desafio { --cor-tipo: #9A4A16; }
.aviso-teste { background: #FDECEA; color: #8C1D17; border: 1px solid #F3C2BD; border-radius: 10px; padding: .55rem .75rem; font-size: .88rem; margin: .4rem 0 .6rem; text-align: left; }
/* o fundo fica preso à tela (não aumenta quando a página é comprida) */
.entrada.com-capa .capa { position: fixed; }
.entrada.com-capa .entrada-prof, .entrada.com-capa .frase-anisio { background: rgba(255, 255, 255, .82); border-radius: 12px; padding: .35rem .8rem; backdrop-filter: blur(4px); }

/* ---------- coordenação: entrada e ativação (moldura com a marca) ---------- */
.cd-onb {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: start center; padding: clamp(1.2rem, 4vh, 3rem) 1rem 2rem;
  background: #EEF3F9 url("../assets/fundo-login.webp") center / cover no-repeat fixed;
}
@media (max-width: 700px) { .cd-onb { background-image: url("../assets/fundo-login-estreito.webp"); background-attachment: scroll; } }
.cd-onb-centro { width: min(100%, 460px); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.cd-onb-centro.largo { width: min(100%, 620px); }
.cd-onb-logo { width: min(100%, 360px); height: auto; filter: drop-shadow(0 10px 18px rgba(11, 59, 112, .16)); }
.cd-onb-selo {
  margin: -.2rem 0 .2rem; padding: .3rem .9rem; border-radius: 999px; font: 700 .72rem/1 "Montserrat", "Inter", sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: #6A4A00; background: linear-gradient(180deg, #FFF3CF, #F8DE93); border: 1px solid #EAC45B;
}
.cd-passos { list-style: none; display: flex; gap: .3rem; padding: .35rem; margin: 0; width: 100%; border-radius: 14px; background: rgba(255, 255, 255, .8); border: 1px solid #DCE3EE; backdrop-filter: blur(6px); }
.cd-passos li { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .3rem; border-radius: 10px; font: 600 .8rem/1.1 "Inter", sans-serif; color: #5A6B82; }
.cd-passo-num { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; font-weight: 800; font-size: .74rem; background: #E2EBF6; color: #0B3B70; flex: none; }
.cd-passos li.feito .cd-passo-num { background: #2E7D32; color: #fff; }
.cd-passos li.atual { background: #0B3B70; color: #fff; box-shadow: 0 8px 18px -10px rgba(6, 30, 60, .7); }
.cd-passos li.atual .cd-passo-num { background: #EBAA10; color: #1B1406; }
@media (max-width: 520px) { .cd-passos li:not(.atual) .cd-passo-txt { display: none; } }
.cd-onb-cartao {
  width: 100%; position: relative; overflow: hidden; padding: 1.8rem clamp(1.2rem, 4vw, 2rem) 1.5rem; border-radius: 18px;
  background: rgba(255, 255, 255, .97); border: 1px solid #DCE3EE; box-shadow: 0 1px 2px rgba(11, 30, 60, .05), 0 30px 60px -28px rgba(11, 30, 60, .38);
}
.cd-onb-cartao::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #0B3B70 0%, #1582C5 50%, #EBAA10 100%); }
.cd-onb-titulo { font: 800 1.55rem/1.2 "Montserrat", "Inter", sans-serif; letter-spacing: -.02em; color: #0B3B70; margin: 0 0 .35rem; text-align: center; }
.cd-onb-sub { color: #46536A; text-align: center; margin: 0 auto 1.1rem; max-width: 40ch; line-height: 1.5; }
.cd-onb-icone { font-size: 2.4rem; text-align: center; margin-bottom: .2rem; }
.cd-onb-cartao .cd-entrada-form { margin: .4rem 0 0; gap: .85rem; }
.cd-onb-cartao .btn-grande { width: 100%; }
.cd-dica { display: block; margin-top: .3rem; color: #67748A; font-size: .8rem; font-weight: 400; }
.cd-conta { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; margin: .2rem 0 .6rem; border-radius: 12px; background: #F3F6FA; border: 1px solid #DCE3EE; }
.cd-conta-ini { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; flex: none; font: 800 .8rem/1 "Montserrat", sans-serif; color: #1B1406; background: linear-gradient(135deg, #F8D873, #EBAA10); }
.cd-conta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cd-conta-txt small { color: #67748A; font-size: .75rem; }
.cd-conta-txt strong { color: #0F1E33; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-onb-cartao > .cd-conta:last-child { margin: 1.2rem 0 0; }
.cd-inep-linha { display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: start; }
.cd-inep-linha .btn-grande { width: auto; margin-top: 1.55rem; white-space: nowrap; }
@media (max-width: 560px) { .cd-inep-linha { grid-template-columns: 1fr; } .cd-inep-linha .btn-grande { width: 100%; margin-top: 0; } }
.cd-inep { font: 700 1.25rem/1.2 "Montserrat", "Inter", sans-serif; letter-spacing: .18em; }
.cd-onb-cartao .ct-bloco { margin-top: 1rem; padding: 1rem; border-radius: 14px; border: 1px solid #DCE3EE; background: #FAFCFE; }
.cd-aviso-suave { padding: .8rem 1rem; border-radius: 12px; background: #FDF2D3; border: 1px solid #F1D58A; color: #5A4300; line-height: 1.5; margin-bottom: 1rem; }
.cd-onb-acoes { display: flex; flex-direction: column; gap: .5rem; }
.cd-beneficios { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.cd-beneficios li { display: flex; align-items: center; gap: .45rem; padding: .5rem .6rem; border-radius: 10px; background: #F3F6FA; font-size: .82rem; font-weight: 600; color: #24324A; }
.cd-onb-rodape { margin: .2rem 0 0; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .82); font-size: .85rem; color: #46536A; }
.cd-onb-rodape a { color: #0B3B70; }
.cd-onb-cartao .ct-bloco .btn { width: 100%; margin-top: .4rem; }
html:has(.cd-onb) { background: #EEF3F9; }
.cd-ajuda { margin: -.3rem 0 1rem; padding: .6rem .9rem; border-radius: 12px; background: #F3F6FA; border: 1px solid #DCE3EE; font-size: .9rem; color: #24324A; }
.cd-ajuda summary { cursor: pointer; font-weight: 700; color: #0B3B70; }
.cd-ajuda ol { margin: .5rem 0 0; padding-left: 1.2rem; line-height: 1.55; }

/* ---------- faixa com o nome da aba: cartão branco, ícone oficial da aba, texto e painel azul com o emblema ---------- */
.faixa-aba {
  position: relative; display: flex; align-items: center; gap: clamp(.7rem, 2.2vw, 1.5rem); box-sizing: border-box; overflow: hidden;
  min-height: clamp(86px, 11vw, 132px); margin: 1.2rem auto -.6rem; padding: 0 clamp(1rem, 3.3vw, 2.5rem);
  width: calc(min(100%, 1280px) - 2 * clamp(1rem, 2.6vw, 2.2rem));
  background: #fff; border: 1px solid #DCE5F1; border-radius: clamp(16px, 1.9vw, 22px);
  box-shadow: 0 1px 2px rgba(11, 30, 60, .04), 0 10px 24px rgba(11, 30, 60, .07); container-type: inline-size;
  font-family: "Nunito", var(--ag-fonte-corpo, system-ui), sans-serif;
}
.faixa-aba[hidden] { display: none; }
.faixa-marca { position: absolute; top: 0; right: 0; height: 100%; width: 28.3%; pointer-events: none; }
.faixa-emblema { position: absolute; right: -3%; top: -26%; width: 19.5%; height: auto; opacity: .3; pointer-events: none; }
.faixa-ic { position: relative; z-index: 1; flex: none; color: #0B3B70; }
.faixa-ic .ag-ic { display: block; width: clamp(54px, 7.6cqi, 92px); height: clamp(54px, 7.6cqi, 92px); }
.faixa-aba.faixa-3d .faixa-ic .ag-ic { filter: drop-shadow(0 4px 5px rgba(11, 59, 112, .18)); }
.faixa-fio { position: relative; z-index: 1; flex: none; width: 1px; height: 55%; background: #E3EAF4; }
.faixa-txt { position: relative; z-index: 1; min-width: 0; flex: 1 1 auto; padding-right: 30%; }
.faixa-rotulo { margin: 0 0 .3em; font: 700 clamp(.58rem, 1cqi, .75rem)/1.2 "Nunito", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8A5F00; }
.faixa-titulo { margin: 0; font: 700 clamp(1.2rem, 3.2cqi, 2.4rem)/1.1 "Nunito", sans-serif; letter-spacing: -.005em; color: #0B3B70;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faixa-aba.faixa-3d .faixa-titulo { font-weight: 800; }
.faixa-sub { margin: .4em 0 0; font: 400 clamp(.8rem, 1.25cqi, .95rem)/1.3 "Nunito", sans-serif; color: #5B6B82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faixa-base { position: absolute; left: 0; bottom: 0; width: 66%; height: 3px; background: linear-gradient(90deg, #E5A00A, rgba(229, 160, 10, .35) 45%, rgba(229, 160, 10, 0)); }
/* no modo escuro o cartão continua branco: o ícone usa sempre a versão normal */
html.ag-escuro .faixa-aba .faixa-ic .ag-ic.ilu-on img.ilu-n { display: block; }
html.ag-escuro .faixa-aba .faixa-ic .ag-ic.ilu-on img.ilu-c { display: none; }
@media (max-width: 700px) {
  .faixa-aba { min-height: 84px; margin-top: .8rem; }
  .faixa-marca { width: 30%; }
  .faixa-emblema { width: 26%; right: -6%; top: -18%; }
  .faixa-fio { height: 50%; }
  .faixa-txt { padding-right: 24%; }
  .faixa-titulo { font-size: clamp(1.05rem, 5.4cqi, 1.5rem); white-space: normal; line-height: 1.12; }
  .faixa-sub { display: none; }
}
/* com a faixa, o título repetido do cabeçalho da aba sai (fica só a explicação e os botões) */
body.tem-faixa h1.titulo-repetido { display: none; }
body.tem-faixa .ag-cabeca-aba:has(h1.titulo-repetido) .ag-cabeca-ic { display: none; }

/* ---------- "Abrindo o Ágora…" enquanto o painel carrega ---------- */
.abrindo { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: radial-gradient(60% 50% at 50% 40%, #FFFFFF 0%, #EEF3F9 70%); transition: opacity .25s; text-align: center; padding: 1rem; }
.abrindo.saindo { opacity: 0; pointer-events: none; }
.abrindo img { width: 96px; height: 96px; filter: drop-shadow(0 10px 18px rgba(11, 59, 112, .22)); animation: abrindo-pulsa 2.4s ease-in-out infinite; }
.abrindo-icone { position: relative; display: grid; place-items: center; width: 132px; height: 132px; }
.abrindo-icone::before, .abrindo-icone::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 183, 36, .28), rgba(26, 90, 168, .12) 60%, transparent); animation: abrindo-onda 2.4s ease-out infinite; }
.abrindo-icone::after { animation-delay: 1.2s; }
.abrindo-icone img { position: relative; }
.abrindo.entrando .abrindo-roda { display: none; }
.abrindo-msg { font: 700 1.05rem/1.4 "Montserrat", "Inter", sans-serif; color: #0B3B70; margin: .4rem 0 0; }
.abrindo-roda { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #DCE3EE; border-top-color: #EBAA10; animation: abrindo-gira .8s linear infinite; }
.abrindo-acoes { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .6rem; }
.abrindo-acoes[hidden] { display: none; }
@keyframes abrindo-gira { to { transform: rotate(360deg); } }
@keyframes abrindo-pulsa { 0%, 100% { transform: scale(1); filter: drop-shadow(0 10px 18px rgba(11, 59, 112, .22)); } 50% { transform: scale(1.06); filter: drop-shadow(0 12px 26px rgba(242, 183, 36, .45)); } }
@keyframes abrindo-onda { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .abrindo img, .abrindo-roda, .abrindo-icone::before, .abrindo-icone::after { animation: none; } }

/* ---------- Celular com cara de aplicativo (iPhone e Android) ---------- */
.resultados-busca.oculto { display: none; }
.topo-marca, .nav-inferior, .cel-grade { display: none; }
@media (max-width: 700px) {
  /* barra de cima azul: menu · marca · sino · perfil */
  .barra-topo { background: linear-gradient(180deg, #0B3B70, #082D58) !important; border-bottom: 0 !important; backdrop-filter: none;
    padding: calc(.45rem + env(safe-area-inset-top)) .6rem .45rem; gap: .3rem; box-shadow: 0 6px 18px -10px rgba(6, 30, 60, .7); }
  .barra-topo .busca, .barra-topo .topo-nome, .barra-topo [aria-label="Aparência e personalização"] { display: none !important; }
  .barra-topo .btn-icone, .barra-topo .topo-acoes .btn-icone { color: #fff; }
  .barra-topo .btn-icone:hover { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
  .barra-topo .topo-acoes { border: 0; padding: 0; }
  .topo-marca { display: flex; align-items: center; gap: .45rem; background: none; border: 0; padding: 0; cursor: pointer; margin-right: auto;
    font: 800 1.3rem/1 "Montserrat", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
  .topo-marca img { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
  .topo-perfil .perfil-foto { box-shadow: 0 0 0 2px #EBAA10; }

  /* conteúdo não fica escondido atrás da barra de baixo */
  .principal { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .vista { padding-left: .9rem; padding-right: .9rem; }

  /* Início: saudação + grade de painéis em 2 colunas */
  .hero { padding: 1rem 1.1rem; border-radius: 18px; }
  .hero h1 { font-size: 1.35rem; }
  .hero p:not(.hero-frase) { display: none; }
  .hero-logo { width: 52px; height: 52px; }
  .acoes-rapidas { display: none !important; }
  .cel-grade { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0 1.4rem; }
  .cel-tile { display: flex; align-items: center; gap: .6rem; min-height: 74px; padding: .55rem .7rem .55rem .55rem; text-align: left;
    background: #fff; border: 1px solid #E1E8F2; border-radius: 16px; box-shadow: 0 6px 16px -10px rgba(11, 59, 112, .35);
    font: 700 .92rem/1.2 "Montserrat", "Inter", sans-serif; color: #0B3B70; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .cel-tile:active { transform: scale(.97); }
  .cel-tile-ic { flex: none; width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(145deg, #1A5FA8, #0B3B70 60%, #061E3C); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
  .cel-tile-ic { background: none; box-shadow: none; }
  .cel-tile-ic img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(11, 59, 112, .3)); }
  .cel-tile-txt { display: flex; flex-direction: column; gap: .15rem; }
  .cel-vivo { grid-column: 1 / -1; padding-right: 4.4rem; min-height: 86px; background: linear-gradient(120deg, #0B3B70, #1582C5); border: 0; color: #fff; font-size: 1.1rem; }
  .cel-vivo .cel-tile-ic { width: 66px; height: 66px; }
  .cel-vivo .cel-tile-ic img { width: 66px; height: 66px; }
  .cel-vivo small { font-size: .72rem; letter-spacing: .12em; color: #FFD34D; }
  .cel-seta { margin-left: auto; font-size: 2rem; line-height: 1; color: #FFD34D; }
  html.ag-escuro .cel-tile:not(.cel-vivo) { background: var(--ag-superficie); border-color: var(--ag-borda); color: var(--ag-texto); }

  /* barra fixa de baixo */
  .nav-inferior { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: #fff; border-top: 1px solid #E1E8F2; box-shadow: 0 -8px 24px -14px rgba(6, 30, 60, .45);
    padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); }
  .ni-item { display: flex; flex-direction: column; align-items: center; gap: .15rem; background: none; border: 0; padding: .35rem 0; cursor: pointer;
    font: 600 .7rem/1.1 "Inter", sans-serif; color: #5B6B80; -webkit-tap-highlight-color: transparent; }
  .ni-item .ag-ic { width: 1.5rem; height: 1.5rem; }
  .ni-item.ativo { color: #0B3B70; }
  .ni-item.ativo .ag-ic { color: #EBAA10; }
  .ni-item.ativo span { font-weight: 800; }
  html.ag-escuro .nav-inferior { background: var(--ag-superficie); border-color: var(--ag-borda); }
  html.ag-escuro .ni-item.ativo { color: var(--ag-texto); }
  /* botões flutuantes sobem para não cobrir a barra */
  body:has(.nav-inferior) .tutor-bt { width: 54px; height: 54px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.nav-inferior) .tutor-convite { bottom: calc(144px + env(safe-area-inset-bottom)); }
  body:has(.nav-inferior) .tutor-menu { bottom: calc(144px + env(safe-area-inset-bottom)); max-height: calc(100vh - 230px); }
  body:has(.nav-inferior) .fab-planejador { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.nav-inferior) .versao-rodape { display: none; }
}

/* =====================================================================
   Acabamento profissional das abas (computador e celular)
   ===================================================================== */
/* fundo limpo (sai a textura de rabiscos, que parecia desenhada à mão); fundo próprio da Aparência continua valendo */
body.pagina-prof::before, body.pagina-aluno::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; filter: none; opacity: 1;
  background: radial-gradient(1200px 520px at 85% -10%, rgba(21, 130, 197, .10), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(235, 170, 16, .07), transparent 60%),
    linear-gradient(180deg, #F5F8FC 0%, #EEF3F9 100%); }
html.ag-escuro body.pagina-prof::before, html.ag-escuro body.pagina-aluno::before {
  opacity: 1; background: radial-gradient(1200px 520px at 85% -10%, rgba(21, 130, 197, .14), transparent 60%), var(--ag-fundo); }

/* nada estoura a largura da tela: colunas de grade podem encolher */
@media (max-width: 1180px) { .av-grade { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .ct-grade, .mu-grade { grid-template-columns: minmax(0, 1fr); } }
.vista { min-width: 0; }
.tabela-caixa { max-width: 100%; position: relative; -webkit-overflow-scrolling: touch; }

/* ---------- Sala de comando ---------- */
.carimbo { border: 1px solid #DCE5F0; border-radius: 16px; background: linear-gradient(180deg, #fff, #F6F9FD);
  box-shadow: 0 8px 22px -14px rgba(11, 59, 112, .35); padding: .7rem 1.2rem; }
.carimbo-rotulo { color: #1582C5; }
.carimbo-codigo { color: #0B3B70; }
.comando { background: #fff; border: 1px solid #E1E8F2; border-radius: 16px; box-shadow: 0 6px 16px -12px rgba(11, 59, 112, .35); }
.comando:hover { border-color: #1582C5; box-shadow: 0 12px 24px -14px rgba(11, 59, 112, .45); }
.comando strong { color: #0B3B70; font-family: "Montserrat", "Inter", sans-serif; }
.comando-icone { width: 46px; height: 46px; border-radius: 13px; color: #fff; font-size: 1.35rem;
  background: linear-gradient(145deg, #1A5FA8, #0B3B70 65%, #061E3C); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.comando-icone .ag-ic { width: 1.45rem; height: 1.45rem; }
.comando.destaque { border-color: #F2C9C4; background: linear-gradient(180deg, #fff, #FFF6F5); }
.comando.destaque .comando-icone { background: linear-gradient(145deg, #E5484D, #B4232A); }
html.ag-escuro .comando, html.ag-escuro .carimbo { background: var(--ag-superficie); border-color: var(--ag-borda); }
html.ag-escuro .comando strong, html.ag-escuro .carimbo-codigo { color: var(--ag-texto); }

/* ---------- Turma e alunos: lista com cara de aplicativo ---------- */
.al-cabeca { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.al-cabeca h2 { margin: 0; }
.al-total { min-width: 2rem; padding: .15rem .55rem; border-radius: 999px; background: #0B3B70; color: #fff; font-weight: 800; font-size: .85rem; text-align: center; }
.lista-alunos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: .5rem; }
.al-linha { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1px solid #E1E8F2; border-radius: 14px; background: #fff; }
.al-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 .85rem/1 "Montserrat", sans-serif;
  color: #fff; background: linear-gradient(145deg, #1A5FA8, #0B3B70); }
.al-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.al-info strong { font-size: .93rem; color: #1C2B3D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-info small { color: #55657a; font-size: .78rem; display: flex; gap: .4rem; align-items: center; }
.al-acoes { display: flex; gap: .2rem; flex: none; }
.al-acoes .btn-link { text-decoration: none; font-size: .8rem; font-weight: 700; padding: .3rem .5rem; border-radius: 8px; background: #EEF4FB; color: #0B3B70; }
.al-acoes .btn-link.perigo { background: #FFF1F0; color: #B4232A; }
html.ag-escuro .al-linha { background: var(--ag-superficie); border-color: var(--ag-borda); }
html.ag-escuro .al-info strong { color: var(--ag-texto); }

/* ---------- Celular ---------- */
@media (max-width: 700px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .bloco { padding: 1rem; border-radius: 16px; }
  .btn { min-height: 44px; }
  .linha-botoes { gap: .45rem; }

  /* Sala de comando: turma e código numa linha, ações em grade 2×N */
  .cabeca-turma { flex-wrap: nowrap; gap: .6rem; margin-bottom: .8rem; }
  .cabeca-turma > div:first-child { flex: 1; min-width: 0; }
  .carimbo { max-width: 52%; }
  .carimbo-acoes { flex-wrap: wrap; justify-content: center; column-gap: .55rem; row-gap: 0; }
  .cabeca-turma .ag-cabeca-ic { display: none; }
  .cabeca-turma h1 { font-size: 1.25rem; margin: 0; }
  .cabeca-turma .sub { font-size: .8rem; margin: 0; }
  .carimbo { padding: .45rem .7rem; flex: none; }
  .carimbo-rotulo { font-size: .6rem; }
  .carimbo-codigo { font-size: 1.15rem !important; letter-spacing: .14em; }
  .carimbo-acoes { gap: .5rem; font-size: .75rem; }
  .comandos { grid-template-columns: 1fr 1fr !important; gap: .55rem; }
  .comando { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .75rem; min-height: 104px; }
  .comando small { display: none; }
  .comando strong { font-size: .9rem; line-height: 1.2; }
  .comando.destaque { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }
  .comando.destaque small { display: block; font-size: .78rem; }
  .faixa { flex-wrap: wrap; gap: .5rem; border-radius: 14px; }
  .av-stats { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .av-stat { padding: .6rem; }

  /* Turma e alunos */
  .lista-alunos { grid-template-columns: 1fr; }
  .al-linha { flex-wrap: wrap; row-gap: .45rem; }
  .al-info { flex-basis: calc(100% - 60px); }
  .al-acoes { width: 100%; padding-left: 50px; gap: .35rem; }
  .al-acoes .btn-link { flex: 1; text-align: center; font-size: .78rem; padding: .4rem .3rem; }
}

/* =====================================================================
   Caderneta (barra de ações, filtros, resumo, tabela com situação)
   ===================================================================== */
.cd-barra { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .2rem 0 .9rem; }
.cd-bt { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .5rem .95rem; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1px solid #D5DFEB; color: #0B3B70; font: 700 .9rem/1.1 "Inter", sans-serif; white-space: nowrap;
  box-shadow: 0 2px 6px -3px rgba(11, 59, 112, .25); transition: background .15s, border-color .15s, transform .1s; }
.cd-bt:hover { border-color: #1582C5; background: #F4F8FD; }
.cd-bt:active { transform: translateY(1px); }
.cd-bt .ag-ic { width: 1.15rem; height: 1.15rem; color: #1582C5; }
.cd-bt.verde { background: linear-gradient(180deg, #23A55A, #17803F); border-color: #17803F; color: #fff; }
.cd-bt.azul { background: linear-gradient(180deg, #1670b5, #1268AE); border-color: #1268AE; color: #fff; }
.cd-bt.verde .ag-ic, .cd-bt.azul .ag-ic { color: #fff; }
.cd-bt.laranja { background: linear-gradient(180deg, #F0A030, #D9821B); border-color: #C77412; color: #fff; }
.cd-bt.laranja .ag-ic { color: #fff; }
.vist-lista { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .35rem; max-height: 55vh; overflow: auto; }
.vist-linha label { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .5rem; align-items: center; padding: .45rem .6rem; border: 1px solid var(--linha, #DCE5F0); border-radius: 10px; cursor: pointer; }
.vist-linha small { display: block; color: #55657a; font-size: .74rem; }
.vist-linha s { color: #8A1C1C; }
.vist-seta { color: #1268AE; font-weight: 800; }
.chamada-sugestoes { list-style: none; margin: .25rem 0 0; padding: .25rem; border: 1px solid var(--linha, #C9D6E6); border-radius: 10px; background: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); max-height: 260px; overflow: auto; }
.chamada-sugestoes li button { width: 100%; text-align: left; border: 0; background: none; padding: .55rem .6rem; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: inherit; }
.chamada-sugestoes li button:hover, .chamada-sugestoes li button.ativo { background: #EEF4FB; }
.chamada-dica { font-size: .8rem; color: #33465E; margin: .25rem 0 0; }
.nome-escolhido { border-color: #17803F !important; box-shadow: 0 0 0 2px rgba(23,128,63,.18); }
.cd-bt.verde:hover { background: linear-gradient(180deg, #1F9A52, #136E36); }
.cd-bt.azul:hover { background: linear-gradient(180deg, #1A7DC2, #0F5C9A); }
.cd-seta { font-size: .75rem; margin-left: .1rem; }
.cd-menu { position: relative; }
.cd-menu > summary { list-style: none; }
.cd-menu > summary::-webkit-details-marker { display: none; }
.cd-menu-lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 320px; max-height: 70vh; overflow: auto;
  background: #fff; border: 1px solid #DCE5F0; border-radius: 14px; box-shadow: 0 22px 48px -18px rgba(6, 30, 60, .45); padding: .4rem; }
.cd-op { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; border: 0; background: none;
  padding: .55rem .6rem; border-radius: 10px; cursor: pointer; font: inherit; color: #0B3B70; }
.cd-op:hover, .cd-op:focus-visible { background: #EEF4FB; }
.cd-op > span:last-child { display: flex; flex-direction: column; }
.cd-op strong { font-size: .92rem; }
.cd-op small { color: #55657a; font-size: .78rem; }
.cd-op-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #EAF2FB; color: #1268AE; }

.cd-filtros { display: flex; flex-wrap: wrap; gap: .8rem; align-items: stretch; margin-bottom: .9rem; }
.cd-filtros-campos { flex: 1 1 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: .75rem .9rem;
  background: #fff; border: 1px solid #DCE5F0; border-radius: 14px; box-shadow: 0 6px 18px -14px rgba(11, 59, 112, .4); }
.cd-filtro { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.cd-filtro-ic { flex: none; color: #0B3B70; } .cd-filtro-ic .ag-ic { width: 1.5rem; height: 1.5rem; }
.cd-filtro-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.cd-filtro-txt small { font-weight: 700; font-size: .78rem; color: #0B3B70; }
.cd-filtro select, .cd-fixo { width: 100%; min-height: 38px; padding: .4rem .6rem; border: 1px solid #D5DFEB; border-radius: 9px; background: #fff;
  font: 600 .9rem/1.2 "Inter", sans-serif; color: #1C2B3D; }
.cd-fixo { display: flex; align-items: center; background: #F4F7FB; }
.cd-resumo-caixa { flex: 0 1 auto; display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem;
  background: #fff; border: 1px solid #DCE5F0; border-radius: 14px; box-shadow: 0 6px 18px -14px rgba(11, 59, 112, .4); }
.cd-resumo-tit { display: flex; align-items: center; gap: .45rem; font: 700 .82rem/1.15 "Inter", sans-serif; color: #0B3B70; margin-right: .2rem; }
.cd-resumo-tit .ag-ic { width: 1.5rem; height: 1.5rem; color: #1268AE; }
.cd-num { min-width: 74px; padding: .35rem .5rem; border-radius: 10px; text-align: center; display: flex; flex-direction: column; border: 1px solid; }
.cd-num strong { font: 800 1.45rem/1.05 "Montserrat", "Inter", sans-serif; }
.cd-num small { font-size: .7rem; font-weight: 600; }
.cd-num.verde { background: #EAF7EF; border-color: #BFE5CC; color: #17803F; }
.cd-num.azul { background: #EAF3FC; border-color: #BCD8F2; color: #1268AE; }
.cd-num.laranja { background: #FFF5E5; border-color: #F7D9A6; color: #C26A00; }
.cd-num.vermelho { background: #FFEFEE; border-color: #F5C9C5; color: #C0262D; }

.tabela-caixa.caderneta { max-height: calc(100vh - 300px); min-height: 220px; border: 1px solid #C9D6E6; border-radius: 14px;
  background: #fff; box-shadow: 0 10px 28px -18px rgba(11, 59, 112, .45); }
.cd-tabela { font-size: .9rem; border-collapse: separate; border-spacing: 0; }
.cd-tabela th, .cd-tabela td { padding: .38rem .6rem; border-bottom: 1px solid #E6ECF3; vertical-align: middle; }
.cd-tabela td + td, .cd-tabela th + td, .cd-tabela td + th { border-left: 1px solid #EDF1F6; }
.cd-tabela thead th { position: sticky; top: 0; z-index: 3; background: linear-gradient(180deg, #0E4A8A, #0B3B70); color: #fff; text-align: center;
  font: 800 .88rem/1.15 "Montserrat", "Inter", sans-serif; text-transform: uppercase; letter-spacing: .02em; border-bottom: 0; border-left: 1px solid rgba(255, 255, 255, .14); padding: .65rem .6rem; }
.cd-tabela thead th small { display: block; font: 500 .68rem/1.2 "Inter", sans-serif; text-transform: none; letter-spacing: 0; color: #CFE0F3; margin-top: .15rem; }
.cd-tabela thead th.col-nome { text-align: left; left: 2.9rem; z-index: 5; text-transform: none; }
.cd-tabela thead th.col-nome .ag-ic { width: 1.1rem; height: 1.1rem; vertical-align: -3px; }
.cd-tabela thead th.cd-n { left: 0; z-index: 5; }
.cd-tabela .col-atv { min-width: 104px; max-width: 170px; }
.cd-tabela .col-atv button { color: #fff; font: inherit; text-transform: inherit; text-decoration: none; display: block; width: 100%; }
.cd-tabela .col-atv button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.cd-tabela .col-atv small.perigo { color: #FFC9C4; }
.cd-tabela thead th:first-child { border-top-left-radius: 13px; } .cd-tabela thead th:last-child { border-top-right-radius: 13px; }
.cd-tabela .cd-n { position: sticky; left: 0; z-index: 2; width: 2.9rem; min-width: 2.9rem; text-align: center; font-weight: 700; color: #4A5B70; background: inherit; }
.cd-tabela tbody th.cd-nome { position: sticky; left: 2.9rem; z-index: 2; text-align: left; font-weight: 700; color: #1C2B3D; min-width: 220px; }
.cd-tabela tbody tr td, .cd-tabela tbody tr th { background: #fff; }
.cd-tabela tbody tr:nth-child(even) td, .cd-tabela tbody tr:nth-child(even) th { background: #F7FAFD; }
.cd-tabela tbody tr:hover td, .cd-tabela tbody tr:hover th { background: #EEF4FB; }
.cd-tabela .nome-txt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.cd-tabela td input { width: 100%; max-width: 92px; min-width: 60px; padding: .32rem .4rem; text-align: center; border: 1px solid #C9D6E6; border-radius: 7px; background: #fff;
  font: 700 .95rem/1.2 "Inter", sans-serif; color: #1C2B3D; }
.cd-tabela td input:focus { outline: 0; border-color: #1582C5; box-shadow: 0 0 0 3px rgba(21, 130, 197, .22); }
.cd-tabela td.num { text-align: center; }
.cd-total, .cd-tabela .nota-final { font: 800 .98rem/1 "Montserrat", "Inter", sans-serif; }
.cd-tabela tbody td.cd-total.otimo, .cd-tabela tbody td.nota-final.otimo { background: #E3F4E8 !important; color: #17803F; }
.cd-tabela tbody td.cd-total.satisf, .cd-tabela tbody td.nota-final.satisf { background: #EAF7EF !important; color: #1E7A43; }
.cd-tabela tbody td.cd-total.atencao, .cd-tabela tbody td.nota-final.atencao { background: #FFF1DD !important; color: #B85C00; }
.cd-tabela tbody td.cd-total.sem, .cd-tabela tbody td.nota-final.sem { background: #EEF1F5 !important; color: #7A8798; }
.cd-sit { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: 8px; font-weight: 700; font-size: .82rem; white-space: nowrap; border: 1px solid transparent; }
.cd-sit .ag-ic { width: 1.05rem; height: 1.05rem; }
.cd-sit small { font-weight: 500; }
.cd-sit.otimo { background: #E3F4E8; color: #17803F; border-color: #BFE5CC; }
.cd-sit.satisf { background: #EAF7EF; color: #1E7A43; border-color: #CDEBD7; }
.cd-sit.atencao { background: #FFF1DD; color: #B85C00; border-color: #F7D9A6; }
.cd-sit.sem { background: #EEF1F5; color: #5B6B80; border-color: #DCE3EC; }
.cd-sit-cel { text-align: center; }
.cd-acoes-cel { text-align: center; white-space: nowrap; }
.cd-ico { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: #1268AE; }
.cd-ico:hover { background: #EAF2FB; }
.cd-ico .ag-ic { width: 1.15rem; height: 1.15rem; }
.cd-tabela tfoot th, .cd-tabela tfoot td { position: sticky; bottom: 0; background: #EEF3F9; font-weight: 800; color: #0B3B70; border-top: 1px solid #C9D6E6; text-align: center; }
.cd-tabela tfoot th { text-align: left; }

.cd-rodape { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-top: .9rem; padding: .7rem .9rem;
  background: #fff; border: 1px solid #DCE5F0; border-radius: 14px; }
.cd-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; color: #0B3B70; }
.cd-rodape-acoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.cd-dica { font-size: .82rem; margin-top: .5rem; }

.cd-boletim .tabela { margin: .4rem 0 .8rem; }
.cd-boletim-final { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1rem; }
.cd-rel-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.cd-rel-nums > div { background: #F4F7FB; border-radius: 12px; padding: .7rem; text-align: center; display: flex; flex-direction: column; }
.cd-rel-nums strong { font: 800 1.6rem/1.1 "Montserrat", sans-serif; color: #0B3B70; }
.cd-rel-nums small { color: #5B6B80; }
.cd-rel-linha { display: grid; grid-template-columns: 170px 1fr 70px; align-items: center; gap: .7rem; margin: .35rem 0; }
.cd-rel-linha strong { text-align: right; color: #0B3B70; }
.cd-rel-nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-rel-barra { height: 10px; background: #EEF1F5; border-radius: 999px; overflow: hidden; }
.cd-rel-barra i { display: block; height: 100%; border-radius: 999px; background: #1582C5; }
.cd-rel-barra i.otimo { background: #17803F; } .cd-rel-barra i.satisf { background: #3DBB6E; }
.cd-rel-barra i.atencao { background: #E8900C; } .cd-rel-barra i.sem { background: #9AA6B5; }

html.ag-escuro .cd-bt:not(.verde):not(.azul), html.ag-escuro .cd-filtros-campos, html.ag-escuro .cd-resumo-caixa, html.ag-escuro .cd-rodape,
html.ag-escuro .tabela-caixa.caderneta, html.ag-escuro .cd-menu-lista, html.ag-escuro .cd-filtro select { background: var(--ag-superficie); border-color: var(--ag-borda); color: var(--ag-texto); }
html.ag-escuro .cd-tabela tbody tr td, html.ag-escuro .cd-tabela tbody tr th { background: var(--ag-superficie); color: var(--ag-texto); }
html.ag-escuro .cd-tabela tbody tr:nth-child(even) td, html.ag-escuro .cd-tabela tbody tr:nth-child(even) th, html.ag-escuro .cd-fixo,
html.ag-escuro .cd-tabela tfoot th, html.ag-escuro .cd-tabela tfoot td { background: rgba(255, 255, 255, .05); color: var(--ag-texto); }
html.ag-escuro .cd-tabela td input { background: transparent; color: var(--ag-texto); border-color: var(--ag-borda); }

@media (max-width: 1100px) { .cd-resumo-caixa { flex: 1 1 100%; justify-content: space-between; } }
@media (max-width: 700px) {
  .cd-barra { flex-wrap: nowrap; overflow-x: auto; margin: 0 -.9rem .8rem; padding: .2rem .9rem .4rem; scrollbar-width: none; }
  .cd-barra::-webkit-scrollbar { display: none; }
  .cd-bt { min-height: 40px; padding: .45rem .75rem; font-size: .84rem; }
  .cd-menu-lista { position: fixed; left: .6rem; right: .6rem; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-height: 62vh; }
  .cd-filtros-campos { grid-template-columns: 1fr 1fr; padding: .6rem; gap: .55rem; }
  .cd-filtros-campos .cd-filtro:first-child { grid-column: 1 / -1; }
  .cd-filtro-ic { display: none; }
  .cd-resumo-caixa { gap: .35rem; padding: .5rem; }
  .cd-resumo-tit { display: none; }
  .cd-num { flex: 1; min-width: 0; padding: .3rem .2rem; }
  .cd-num strong { font-size: 1.2rem; }
  .cd-num small { font-size: .62rem; }
  .tabela-caixa.caderneta { max-height: calc(100vh - 250px); }
  .cd-tabela th, .cd-tabela td { padding: .32rem .35rem; }
  .cd-tabela .cd-n { width: 2.2rem; min-width: 2.2rem; font-size: .78rem; }
  .cd-tabela thead th.col-nome, .cd-tabela tbody th.cd-nome { left: 2.2rem; }
  .cd-tabela tbody th.cd-nome { min-width: 0; }
  .cd-tabela .nome-txt { max-width: 34vw; font-size: .8rem; }
  .cd-tabela .col-atv { min-width: 74px; }
  .cd-tabela td input { min-width: 52px; font-size: .9rem; }
  .cd-sit { font-size: .74rem; padding: .22rem .45rem; }
  .cd-rodape { padding: .6rem; }
  .cd-legenda { font-size: .76rem; }
  .cd-rodape-acoes { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .cd-rodape-acoes .cd-bt { justify-content: center; padding: .45rem .3rem; font-size: .78rem; white-space: normal; text-align: center; }
  .cd-rel-linha { grid-template-columns: 110px 1fr 56px; }
}
.cd-bt.verde > .ag-ic, .cd-bt.azul > .ag-ic { background: none; color: #fff; padding: 0; }
.cd-tabela thead th.cd-n { background: linear-gradient(180deg, #0E4A8A, #0B3B70); color: #fff; }
.cd-tabela .col-atv small, .cd-tabela thead th small { color: #CFE0F3; }
.cd-filtros-campos { flex-basis: 560px; }
@media (max-width: 700px) { .cd-tabela thead th { font-size: .74rem; padding: .5rem .35rem; } }

/* Caderneta: botões alinhados em grade, centralizados */
.cd-bt > .ag-ic { background: none !important; padding: 0 !important; border-radius: 0 !important; }
.cd-bt.verde > .ag-ic, .cd-bt.azul > .ag-ic { color: #fff !important; }
.cd-barra { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 15vw, 210px), 1fr)); gap: .55rem; padding: .6rem; margin: .2rem 0 .9rem;
  background: #fff; border: 1px solid #DCE5F0; border-radius: 14px; box-shadow: 0 6px 18px -14px rgba(11, 59, 112, .4); }
.cd-barra > .cd-bt, .cd-barra > .cd-menu, .cd-barra > .cd-menu > summary { width: 100%; }
.cd-barra .cd-bt { justify-content: center; }
.cd-rodape { flex-direction: column; align-items: center; text-align: center; gap: .7rem; }
.cd-legenda { justify-content: center; }
.cd-rodape-acoes { justify-content: center; display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); width: min(100%, 620px); }
.cd-rodape-acoes .cd-bt { justify-content: center; }
.cd-dica { text-align: center; }
html.ag-escuro .cd-barra { background: var(--ag-superficie); border-color: var(--ag-borda); }
@media (max-width: 700px) {
  .cd-barra { display: flex; flex-wrap: nowrap; overflow-x: auto; background: none; border: 0; box-shadow: none; padding: .2rem .9rem .4rem; margin: 0 -.9rem .8rem; }
  .cd-barra > .cd-bt, .cd-barra > .cd-menu, .cd-barra > .cd-menu > summary { width: auto; flex: none; }
  .cd-rodape-acoes { grid-template-columns: repeat(3, 1fr); width: 100%; }
}
.cd-resumo-caixa { flex: 1 1 100%; justify-content: center; gap: .7rem; }
.cd-resumo-caixa .cd-num { min-width: 120px; }
@media (max-width: 700px) { .cd-resumo-caixa { gap: .35rem; } .cd-resumo-caixa .cd-num { min-width: 0; } }
@media (max-width: 700px) {
  .cd-barra { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; overflow: visible; margin: 0 0 .8rem; padding: .45rem;
    background: #fff; border: 1px solid #DCE5F0; box-shadow: 0 6px 18px -14px rgba(11, 59, 112, .4); }
  .cd-barra > .cd-bt, .cd-barra > .cd-menu, .cd-barra > .cd-menu > summary { width: 100%; }
  .cd-barra .cd-bt { white-space: normal; text-align: center; line-height: 1.15; font-size: .8rem; padding: .4rem .35rem; gap: .3rem; }
  html.ag-escuro .cd-barra { background: var(--ag-superficie); }
}

/* ---------- Pontos do site ---------- */
.pt-tabela thead th.col-atv { min-width: 120px; max-width: 190px; }
.pt-tit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-transform: none; font-size: .8rem; line-height: 1.2; }
.pt-cel.vazio { color: #A5B0BE; }
.pt-valor { display: inline-block; min-width: 2.6rem; padding: .25rem .5rem; border-radius: 7px; background: #EEF4FB; color: #0B3B70; font-weight: 800; }
.pt-valor.pendente { background: #FFF5E5; color: #B85C00; }
.pt-grupo { display: block; font-weight: 500; color: #55657a; font-size: .72rem; }
.pt-pct { min-width: 150px; white-space: nowrap; }
.pt-pct b { display: inline-block; min-width: 2.6rem; text-align: right; color: #0B3B70; font-size: .85rem; }
.pt-barra { display: inline-block; width: 90px; height: 8px; border-radius: 999px; background: #E6ECF3; overflow: hidden; vertical-align: middle; margin-right: .45rem; }
.pt-barra i { display: block; height: 100%; border-radius: 999px; background: #9AA6B5; }
.pt-barra i.otimo { background: #17803F; } .pt-barra i.satisf { background: #3DBB6E; } .pt-barra i.atencao { background: #E8900C; }
.pt-ast { color: #B85C00; font-size: .8rem; }
html.ag-escuro .pt-valor { background: rgba(255, 255, 255, .08); color: var(--ag-texto); }
@media (max-width: 700px) { .pt-pct { min-width: 0; } .pt-barra { width: 46px; } .cd-resumo-caixa { flex-wrap: wrap; } .cd-resumo-caixa .cd-num { flex: 1 1 28%; } }

/* ---------- Turma e alunos: cartões sem sobreposição ---------- */
.lista-alunos { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .6rem; }
.al-linha { flex-wrap: wrap; row-gap: .5rem; align-items: flex-start; }
.al-info { flex: 1 1 calc(100% - 60px); min-width: 0; }
.al-info strong { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; word-break: break-word; }
.al-info small { flex-wrap: wrap; row-gap: .2rem; }
.al-info .selo { position: static; display: inline-flex; margin: 0; white-space: nowrap; }
.al-acoes { width: 100%; padding-left: 50px; gap: .35rem; flex-wrap: wrap; }
.al-acoes .btn-link { flex: 1 1 auto; text-align: center; }

/* =====================================================================
   Banco de questões
   ===================================================================== */
.bq-topo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.bq-abas { display: flex; flex-wrap: wrap; gap: .45rem; }
.bq-aba { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .5rem 1rem; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1px solid #D5DFEB; color: #0B3B70; font: 700 .9rem/1.1 "Inter", sans-serif; box-shadow: 0 2px 6px -3px rgba(11, 59, 112, .25); }
.bq-aba .ag-ic { width: 1.15rem; height: 1.15rem; color: #1582C5; background: none !important; }
.bq-aba:hover { border-color: #1582C5; }
.bq-aba.ativo { background: linear-gradient(180deg, #FFD24A, #EBAA10); border-color: #D99A08; color: #3B2A00; }
.bq-aba.ativo .ag-ic { color: #3B2A00; }
.bq-aba.ouro { background: linear-gradient(180deg, #FFD24A, #EBAA10); border-color: #D99A08; color: #3B2A00; }
.bq-aba.ouro .ag-ic { color: #3B2A00; }
.bq-aba.ia { background: linear-gradient(180deg, #1670b5, #1268AE); border-color: #1268AE; color: #fff; }
.bq-aba.ia .ag-ic { color: #fff; }
.bq-filtros { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: .7rem; }
.bq-busca, .bq-sel { display: flex; align-items: center; gap: .5rem; padding: 0 .7rem; min-height: 44px; background: #fff; border: 1px solid #D5DFEB; border-radius: 11px; }
.bq-busca:focus-within, .bq-sel:focus-within { border-color: #1582C5; box-shadow: 0 0 0 3px rgba(21, 130, 197, .18); }
.bq-busca .ag-ic, .bq-sel .ag-ic { color: #0B3B70; flex: none; background: none !important; }
.bq-busca input, .bq-sel select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 .9rem/1.2 "Inter", sans-serif; color: #1C2B3D; padding: .5rem 0; box-shadow: none; }
.bq-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .8rem; font-size: .86rem; color: #0B3B70; }
.bq-chip { border: 1px solid; border-radius: 10px; padding: .4rem .85rem; font: 700 .86rem/1 "Inter", sans-serif; cursor: pointer; }
.bq-chip.azul { background: #EAF3FC; border-color: #BCD8F2; color: #1268AE; }
.bq-chip.terra { background: #FBEEE6; border-color: #EFCDB8; color: #9E4E20; }
.bq-chip.roxo { background: #F2EAFB; border-color: #DCC8F2; color: #6A3FA3; }
.bq-chip.ouro { background: #FFF5DD; border-color: #F2DB9E; color: #8A6400; }
.bq-chip.verde { background: #E6F6EC; border-color: #BFE5CC; color: #17803F; }
.bq-chip.rosa { background: #FCEAF1; border-color: #F2C6D7; color: #A3305E; }
.bq-chip.anil { background: #ECEEFC; border-color: #CBD0F5; color: #3B4FD0; }
.bq-chip.ativo { background: linear-gradient(180deg, #1670b5, #0B3B70); border-color: #0B3B70; color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 59, 112, .7); }
.bq-limpar { border: 0; background: none; color: #B4232A; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bq-linha { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .7rem; color: #3B4A5C; }
.bq-linha p { margin: 0; }
.bq-ordem { display: flex; align-items: center; gap: .45rem; font-size: .86rem; white-space: nowrap; }
.bq-ordem select { min-height: 38px; padding: .3rem .6rem; border: 1px solid #D5DFEB; border-radius: 9px; background: #fff; font: 600 .86rem/1.2 "Inter", sans-serif; }
.bq-vista { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid #D5DFEB; background: #fff; color: #0B3B70; cursor: pointer; }
.bq-vista.ativo { background: #1268AE; border-color: #1268AE; color: #fff; }
.bq-vista .ag-ic { background: none !important; }

.bq-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.bq-lista.grade { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.bq-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; background: #fff; border: 1px solid #DCE5F0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 22px -16px rgba(11, 59, 112, .45); transition: box-shadow .15s, border-color .15s; }
.bq-card:hover { border-color: #B7CDE6; box-shadow: 0 14px 28px -16px rgba(11, 59, 112, .5); }
.bq-card.marcada { border-color: #1582C5; box-shadow: 0 0 0 2px rgba(21, 130, 197, .35); }
.bq-lado { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .9rem .3rem; color: #fff;
  background: linear-gradient(180deg, #1268AE, #0B3B70 55%, #061E3C); }
.bq-lado strong { font: 800 1.35rem/1 "Montserrat", sans-serif; }
.bq-lado .ag-ic { width: 1.5rem; height: 1.5rem; background: none !important; color: #CFE0F3; }
.bq-lado input { width: 20px; height: 20px; accent-color: #EBAA10; }
.bq-corpo { padding: .85rem 1rem; min-width: 0; }
.bq-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 .5rem; }
.bq-tags small { color: #55657a; font-size: .78rem; margin-left: .2rem; }
.bq-tag { padding: .2rem .55rem; border-radius: 7px; font-size: .74rem; font-weight: 700; border: 1px solid transparent; }
.bq-tag.tipo { background: #EEF1F5; color: #3B4A5C; border-color: #DCE3EC; }
.bq-tag.azul { background: #EAF3FC; color: #1268AE; } .bq-tag.terra { background: #FBEEE6; color: #9E4E20; }
.bq-tag.roxo { background: #F2EAFB; color: #6A3FA3; } .bq-tag.ouro { background: #FFF5DD; color: #8A6400; }
.bq-tag.verde { background: #E6F6EC; color: #17803F; } .bq-tag.rosa { background: #FCEAF1; color: #A3305E; } .bq-tag.anil { background: #ECEEFC; color: #3B4FD0; }
.bq-tag.assunto { background: #E3F6EF; color: #0F6E55; }
.bq-tag.nivel.n0 { background: #E6F6EC; color: #17803F; } .bq-tag.nivel.n1 { background: #FDE9F0; color: #A3305E; } .bq-tag.nivel.n2 { background: #FFE8E6; color: #B4232A; }
.bq-tag.ia { background: #EAF0FF; color: #3654C8; border-color: #CBD6F7; }
.bq-enunciado { margin: 0 0 .45rem; font: 700 .97rem/1.45 "Inter", sans-serif; color: #14243A; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.bq-alts { margin: 0 0 .4rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .25rem .8rem; font-size: .86rem; color: #3B4A5C; }
.bq-alts li { padding: .2rem .45rem; border-radius: 7px; }
.bq-alts li.certa { background: #E6F6EC; color: #17803F; font-weight: 700; }
.bq-esperado { display: flex; gap: .5rem; align-items: flex-start; margin: .3rem 0 0; padding: .5rem .7rem; border-radius: 9px; background: #FFF7E0; border: 1px solid #F5E1A8; color: #4A3A10; font-size: .86rem; line-height: 1.4; }
.bq-esperado .ag-ic { color: #D9910A; background: none !important; flex: none; margin-top: .1rem; }
.bq-esperado b { color: #8A5A00; }
.bq-esperado span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bq-acoes { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem; border-left: 1px solid #EDF1F6; justify-content: center; }
.bq-ac { display: flex; align-items: center; gap: .4rem; border: 0; background: none; padding: .3rem .4rem; border-radius: 7px; cursor: pointer; font: 700 .84rem/1 "Inter", sans-serif; color: #0B3B70; white-space: nowrap; }
.bq-ac:hover { background: #EEF4FB; }
.bq-ac .ag-ic { width: 1.05rem; height: 1.05rem; background: none !important; color: #1268AE; }
.bq-ac.perigo, .bq-ac.perigo .ag-ic { color: #C0262D; }
.bq-ac.fav.ativo, .bq-ac.fav.ativo .ag-ic { color: #D9910A; }
.bq-lista.grade .bq-card { grid-template-columns: 52px minmax(0, 1fr); }
.bq-lista.grade .bq-acoes { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid #EDF1F6; padding: .4rem .6rem; }
.bq-est-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .8rem; }
.bq-est-nums { grid-column: 1 / -1; }
.bq-est { background: #fff; border: 1px solid #DCE5F0; border-radius: 14px; padding: .9rem 1rem; }
.bq-est h3 { margin: 0 0 .5rem; font-size: 1rem; color: #0B3B70; }
html.ag-escuro .bq-card, html.ag-escuro .bq-aba:not(.ativo):not(.ouro):not(.ia), html.ag-escuro .bq-busca, html.ag-escuro .bq-sel, html.ag-escuro .bq-est,
html.ag-escuro .bq-ordem select, html.ag-escuro .bq-vista:not(.ativo) { background: var(--ag-superficie); border-color: var(--ag-borda); color: var(--ag-texto); }
html.ag-escuro .bq-enunciado, html.ag-escuro .bq-busca input, html.ag-escuro .bq-sel select { color: var(--ag-texto); }
html.ag-escuro .bq-esperado { background: rgba(235, 170, 16, .1); color: var(--ag-texto); border-color: rgba(235, 170, 16, .3); }
@media (max-width: 1100px) { .bq-filtros { grid-template-columns: 1fr 1fr; } .bq-busca { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .bq-topo, .bq-abas { width: 100%; }
  .bq-abas { display: grid; grid-template-columns: 1fr 1fr; }
  .bq-topo > .bq-abas:first-child { grid-template-columns: repeat(3, 1fr); }
  .bq-aba { justify-content: center; padding: .45rem .4rem; font-size: .8rem; text-align: center; }
  .bq-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -.9rem; padding-right: .9rem; scrollbar-width: none; }
  .bq-chips > * { flex: none; }
  .bq-card { grid-template-columns: 46px minmax(0, 1fr); }
  .bq-lado { padding: .7rem .2rem; } .bq-lado strong { font-size: 1.05rem; }
  .bq-acoes { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid #EDF1F6; padding: .35rem .5rem; justify-content: space-around; }
  .bq-alts { grid-template-columns: 1fr; }
  .bq-lista.grade { grid-template-columns: 1fr; }
  .bq-ordem { width: 100%; } .bq-ordem select { flex: 1; }
}

/* =====================================================================
   Laboratório: catálogo de salas prontas
   ===================================================================== */
.lp-topo { display: flex; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.lp-busca { flex: 1; display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: 0 .9rem; background: #fff; border: 1px solid #D5DFEB; border-radius: 13px;
  box-shadow: 0 6px 18px -14px rgba(11, 59, 112, .45); }
.lp-busca:focus-within { border-color: #1582C5; box-shadow: 0 0 0 3px rgba(21, 130, 197, .18); }
.lp-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 .95rem/1.2 "Inter", sans-serif; color: #14243A; box-shadow: none; padding: .6rem 0; }
.lp-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.lp-chip { border: 1px solid #D5DFEB; background: #fff; color: #0B3B70; border-radius: 999px; padding: .45rem .95rem; font: 700 .86rem/1 "Inter", sans-serif; cursor: pointer; }
.lp-chip:hover { border-color: #1582C5; }
.lp-chip.ativo { background: #0B3B70; border-color: #0B3B70; color: #fff; }
.lp-secao { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem; font-size: 1.15rem; color: #0B3B70; margin: 1.2rem 0 .7rem; }
.lp-secao small { font: 500 .85rem/1.3 "Inter", sans-serif; color: #5B6B80; }
.lp-sala-tit { border-left: 5px solid var(--cor, #0B3B70); padding-left: .65rem; margin-top: 1.6rem; color: var(--cor, #0B3B70); }
.lp-sala-ic { font-size: 1.2rem; margin-right: .2rem; }
.lp-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: .9rem; }
.lp-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid #DCE5F0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 26px -18px rgba(11, 59, 112, .5); transition: transform .15s, box-shadow .15s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(11, 59, 112, .55); }
.lp-arte { height: 130px; overflow: hidden; }
.lp-arte svg { width: 100%; height: 100%; display: block; }
.lp-ic { position: absolute; left: .9rem; top: 108px; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.45rem;
  background: var(--cor); color: #fff; border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.lp-corpo { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1.6rem 1rem 1rem; }
.lp-corpo h3 { margin: 0; font-size: 1.05rem; color: #0B3B70; }
.lp-corpo p { margin: 0; font-size: .85rem; color: #4A5B70; line-height: 1.45; flex: 1; }
.lp-pe { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .6rem; }
.lp-tag { padding: .22rem .55rem; border-radius: 7px; background: #F1F5FA; color: #3B4A5C; font-size: .74rem; font-weight: 700; }
.lp-bt { margin-left: auto; border: 0; border-radius: 9px; padding: .5rem .85rem; background: var(--cor); color: #fff; font: 800 .82rem/1 "Inter", sans-serif; cursor: pointer; }
.lp-bt:hover { filter: brightness(1.1); }
.lp-hero { position: relative; border-radius: 18px; overflow: hidden; margin: .4rem 0 .9rem; min-height: 170px; display: flex; align-items: flex-end; }
.lp-hero .lp-arte { position: absolute; inset: 0; height: auto; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 18, 40, .88), rgba(4, 18, 40, .35) 70%, transparent); }
.lp-hero-txt { position: relative; z-index: 1; padding: 1.2rem 1.4rem; color: #fff; max-width: 680px; }
.lp-hero-txt .rotulo { color: #FFD24A; margin: 0 0 .2rem; }
.lp-hero-txt h1 { color: #fff; margin: 0 0 .35rem; font-size: 1.7rem; }
.lp-hero-txt p { margin: 0; color: #DCE8F5; }
.lp-explica { margin: 0 0 .9rem; }
.lp-atividades { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.lp-atv { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 1rem; background: #fff;
  border: 1px solid #DCE5F0; border-left: 5px solid var(--cor); border-radius: 14px; box-shadow: 0 8px 22px -16px rgba(11, 59, 112, .45); }
.lp-atv-ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 2rem; background: color-mix(in srgb, var(--cor) 12%, #fff); }
.lp-atv-txt h3 { margin: 0 0 .25rem; font-size: 1.02rem; color: #0B3B70; }
.lp-atv-txt p { margin: 0; font-size: .86rem; color: #4A5B70; }
.lp-atv-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem !important; font-weight: 700; font-size: .78rem !important; color: #5B6B80 !important; }
.lp-atv-acoes { display: flex; flex-direction: column; gap: .4rem; }
html.ag-escuro .lp-card, html.ag-escuro .lp-atv, html.ag-escuro .lp-busca, html.ag-escuro .lp-chip:not(.ativo) { background: var(--ag-superficie); border-color: var(--ag-borda); color: var(--ag-texto); }
html.ag-escuro .lp-corpo h3, html.ag-escuro .lp-atv-txt h3 { color: var(--ag-texto); }
@media (max-width: 700px) {
  .lp-topo { flex-direction: column; align-items: stretch; }
  .lp-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -.9rem; padding-right: .9rem; scrollbar-width: none; }
  .lp-chip { flex: none; }
  .lp-grade { grid-template-columns: 1fr; }
  .lp-atv { grid-template-columns: 48px minmax(0, 1fr); }
  .lp-atv-ic { width: 48px; height: 48px; font-size: 1.5rem; }
  .lp-atv-acoes { grid-column: 1 / -1; flex-direction: row; }
  .lp-atv-acoes .btn { flex: 1; }
  .lp-hero-txt h1 { font-size: 1.3rem; }
}
@media (max-width: 700px) { .lp-hero::after { background: linear-gradient(180deg, rgba(4, 18, 40, .55), rgba(4, 18, 40, .9)); } }
.lp-fav { position: absolute; right: .6rem; top: .6rem; z-index: 2; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .9);
  font-size: 1.05rem; cursor: pointer; filter: grayscale(1); opacity: .75; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.lp-fav.ativo { filter: none; opacity: 1; background: #FFD24A; }
.lp-nota { margin: 0 0 .9rem; }
.lj-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.lj-card { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem; background: #fff; border: 1px solid #DCE5F0; border-top: 5px solid var(--cor); border-radius: 14px;
  box-shadow: 0 8px 22px -16px rgba(11, 59, 112, .45); }
.lj-topo { display: flex; gap: .7rem; align-items: center; }
.lj-ic { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: color-mix(in srgb, var(--cor) 14%, #fff); }
.lj-topo h3 { margin: 0; font-size: 1rem; color: #0B3B70; }
.lj-topo small { color: #5B6B80; font-weight: 600; }
.lj-card > p { margin: 0; flex: 1; font-size: .85rem; color: #4A5B70; }
.lj-acoes { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.lj-acoes .btn { min-height: 38px; padding: .35rem .8rem; }
.lp-criar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 16px;
  background: linear-gradient(120deg, #FFF8E1, #EAF3FC); border: 1px solid #E5D9AE; }
.lp-criar h2 { margin: 0 0 .2rem; font-size: 1.05rem; color: #0B3B70; }
.lp-criar p { margin: 0; }
.lj-criar textarea { width: 100%; font: 500 .92rem/1.45 "Inter", sans-serif; }
.lj-ajuda { white-space: pre-wrap; background: #F4F7FB; border-radius: 10px; padding: .6rem .75rem; font: 500 .8rem/1.45 ui-monospace, Menlo, monospace; color: #3B4A5C; margin: 0; }
html.ag-escuro .lj-card { background: var(--ag-superficie); border-color: var(--ag-borda); }
html.ag-escuro .lj-topo h3 { color: var(--ag-texto); }
@media (max-width: 700px) { .lj-grade { grid-template-columns: 1fr; } .lp-criar .linha-botoes { width: 100%; } .lp-criar .btn { flex: 1; } }
.lj-card > p.lj-a11y { flex: none; font-size: .74rem; font-weight: 800; color: #0E7490; background: #E6F6F9; border-radius: 8px; padding: .25rem .5rem; }
html.ag-escuro .lj-card > p.lj-a11y { background: rgba(14,116,144,.25); color: #A5E4F0; }
/* textos e botões cortados/sobrepostos (varredura automática) */
.turma-cartao .tc-abrir { width: auto; align-self: stretch; max-width: 100%; box-sizing: border-box; }
.bd-capa-txt { padding-bottom: 2.4rem; }
.versao-rodape { right: auto; left: 14px; color: rgba(255,255,255,.55); background: none; }

/* ícones de traço fino no menu lateral */
.nav-item .ag-ic { width: 1.3em; height: 1.3em; opacity: .78; transition: opacity .15s, transform .15s; }
.nav-item .ag-ic svg { stroke-width: 1.6; }
.nav-item:hover .ag-ic { opacity: 1; }
.nav-item.ativo .ag-ic { opacity: 1; }
.ni-item .ag-ic svg { stroke-width: 1.6; }

/* ===== Prepara ENEM ===== */
.enem{display:grid;gap:1rem}
.enem-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1.2rem;align-items:center;background:linear-gradient(120deg,#061E3C,#0B3B70 55%,#1268AE);color:#fff;border-radius:22px;padding:1.4rem 1.6rem;position:relative;overflow:hidden}
.enem-hero::after{content:"";position:absolute;right:-80px;top:-80px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(242,183,5,.32),transparent 70%);pointer-events:none}
.enem-hero small{font:800 .75rem Inter,sans-serif;letter-spacing:.14em;color:#FFD34D}
.enem-hero h2{margin:.1rem 0 .4rem;font:900 clamp(1.4rem,3vw,2rem) Montserrat,sans-serif;color:#fff}
.enem-hero p{margin:.3rem 0;color:#D6E4F5;max-width:720px}
.enem-hero a{color:#FFD34D}
.enem-conta{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:.55rem .8rem;color:#fff!important}
.enem-fonte{font-size:.8rem;opacity:.85}
.enem-dias{display:grid;gap:.6rem;position:relative;z-index:1}
.enem-dias>div{background:#fff;color:#0B3B70;border-radius:16px;padding:.7rem 1rem;min-width:220px;display:grid;gap:.1rem;box-shadow:0 14px 30px -18px #000}
.enem-dias b{font:900 1.4rem Montserrat,sans-serif}.enem-dias span{font-weight:800}.enem-dias small{color:#5B6B80}
@media (max-width:820px){.enem-hero{grid-template-columns:1fr}.enem-dias{grid-template-columns:1fr 1fr}.enem-dias>div{min-width:0}}
.enem-grade{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.8rem}
.enem-card{background:#fff;border:1px solid #E1E8F2;border-top:5px solid var(--c);border-radius:18px;padding:1rem;display:grid;gap:.35rem;align-content:start;box-shadow:0 14px 30px -26px rgba(11,59,112,.7);min-width:0}
.enem-card .ic{font-size:1.8rem}.enem-card h3{margin:0;font:900 1.05rem Montserrat,sans-serif;color:#14243A}.enem-card p{margin:0 0 .3rem;color:#5B6B80;font-size:.88rem}
.enem-card .linha-botoes{flex-wrap:wrap}
.enem-imp{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:1rem;margin:.6rem 0}
@media (max-width:820px){.enem-imp{grid-template-columns:1fr}}
.enem-imp-col{display:grid;gap:.5rem;align-content:start;background:#F7F9FC;border:1px solid #E1E8F2;border-radius:16px;padding:.9rem;min-width:0}
.enem-imp-col h3{margin:0;font:900 .95rem Montserrat,sans-serif;color:#0B3B70}
.enem-imp-col textarea{width:100%;box-sizing:border-box;border:1px solid #C9D6E6;border-radius:12px;padding:.6rem .8rem;font:500 .92rem/1.5 Inter,sans-serif;resize:vertical}
.enem-imp-col .btn{justify-self:start}
.enem-cfg{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.6rem;margin:.6rem 0}
.enem-prev{display:grid;gap:.45rem;padding-left:1.4rem;margin:.6rem 0}
.enem-prev li{background:#fff;border:1px solid #E1E8F2;border-radius:12px;padding:.55rem .7rem}
.enem-prev li>*{vertical-align:middle}
.enem-prev-txt{display:grid;gap:.15rem;min-width:0}.enem-prev-txt small{color:#55657a;overflow-wrap:anywhere}
.enem-prev li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.6rem;align-items:center}
@media (max-width:640px){.enem-prev li{grid-template-columns:1fr}}
.enem-gab{font-weight:800;font-size:.85rem;color:#0B3B70;white-space:nowrap}.enem-gab select{margin-left:.3rem}
.enem-gab.falta{color:#B91C1C}.enem-gab.falta select{border-color:#E5484D}
.enem-dicas{display:grid;gap:.4rem;margin:.3rem 0 0;padding-left:1.2rem}
.enem-pre{background:#0B1530;color:#E6EEF8;border-radius:12px;padding:.8rem 1rem;white-space:pre-wrap;font:.85rem/1.5 ui-monospace,monospace}
.enem-banco-lista{display:grid;gap:.35rem;max-height:60vh;overflow:auto}
.enem-bq{display:flex;gap:.5rem;align-items:flex-start;border:1px solid #E1E8F2;border-radius:10px;padding:.45rem .6rem;font-size:.88rem}
.enem-cfg .campo{min-width:0}.enem-cfg select,.enem-cfg input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.enem-gab select{max-width:5rem}

/* ---------- padronização: logos ilustrados também nas abas do aluno e nas ações rápidas ---------- */
.abas-aluno a { display: inline-flex; align-items: center; gap: .35rem; }
.abas-aluno a .aba-logo { width: 22px; height: 22px; object-fit: contain; flex: none; border-radius: 6px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
body:has(#faixa-aba:not([hidden])) .vista-aluno { padding-top: .9rem; }
body:has(.vista-aluno) .faixa-aba { width: min(calc(100% - 2 * clamp(1rem, 3vw, 2rem)), calc(980px - 4rem)); }
.acao.acao-logo .acao-ic { width: 52px; height: 52px; background: none !important; box-shadow: none; }
.acao.acao-logo .acao-ic img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(11, 59, 112, .25)); }
/* o botão flutuante do tutor não cobre o fim das páginas */
#vista, .vista-aluno { padding-bottom: 104px; }
/* versão do site: no fim do menu lateral, dentro do fluxo (nunca cobre os itens) */
.lateral .versao-rodape.no-menu { position: static; margin-top: auto; padding: .6rem .2rem 0; font-size: .72rem; color: rgba(255,255,255,.5); background: none; }

/* Prepara ENEM: cartões clicáveis e prévia do simulado dentro do site */
.enem-card.clicavel { cursor: pointer; }
.enem-card.clicavel:focus-visible { outline: 3px solid #FFD34D; outline-offset: 2px; }
.modal.largo:has(.enem-previa) { width: min(1180px, calc(100vw - 1rem)); max-height: calc(100dvh - 1rem); }
.modal-corpo:has(.enem-previa) { padding: 0; overflow: hidden; }
.enem-previa { display: block; width: 100%; height: calc(100dvh - 7rem); max-height: 900px; border: 0; background: #F4F7FC; }
@media (max-width: 600px) { .modal.largo:has(.enem-previa) { width: 100vw; max-height: 100dvh; border-radius: 0; } .enem-previa { height: calc(100dvh - 4.2rem); max-height: none; } }

/* ===== Avaliador (rubricas → caderneta) ===== */
.av-modelos{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:14px 0 6px}
.av-modelo{display:grid;gap:3px;text-align:left;border:0;border-radius:18px;padding:16px;background:var(--ag-superficie,#fff);box-shadow:0 14px 30px -24px rgba(6,42,82,.55),inset 0 0 0 1px rgba(11,59,112,.12);cursor:pointer;color:inherit;font:inherit;transition:transform .15s,box-shadow .15s}
.av-modelo:hover{transform:translateY(-2px);box-shadow:0 18px 34px -22px rgba(6,42,82,.6),inset 0 0 0 2px var(--ag-primaria-media,#1556A0)}
.av-modelo-ic{font-size:1.7rem}.av-modelo strong{font-size:1.02rem;color:var(--ag-primaria,#0B3B70)}.av-modelo small{color:#5B6475}
.av-modelo .av-modelo-n{font-weight:800;color:var(--ag-destaque-escura,#0F6399)}
.av-h2{margin:22px 0 8px;font-size:1.05rem}
.av-lista{display:grid;gap:8px}
.av-item{display:flex;align-items:center;gap:12px;border:0;border-radius:14px;padding:12px 14px;background:var(--ag-superficie,#fff);box-shadow:inset 0 0 0 1px rgba(11,59,112,.12);cursor:pointer;text-align:left;color:inherit;font:inherit}
.av-item:hover{box-shadow:inset 0 0 0 2px var(--ag-primaria-media,#1556A0)}
.av-item-ic{font-size:1.5rem;flex:none}.av-item-txt{display:grid;flex:1;min-width:0}.av-item-txt small{color:#5B6475}.av-item-seta{color:var(--ag-primaria,#0B3B70);font-weight:900}
.av-metodo{margin-top:18px;border-radius:14px;padding:10px 14px;background:var(--ag-primaria-clara,#E2EBF6)}.av-metodo summary{cursor:pointer;font-weight:800}
.av-topo{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.av-salvo{font-size:.8rem;font-weight:800;color:#22A35A}.av-salvo.pend{color:#B7791F}
.av-cab{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}.av-cab h1{margin:0;font-size:1.35rem}.av-cab>div:nth-child(2){flex:1;min-width:200px}
.av-resumo{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:8px 0}
.av-resumo>div{border-radius:14px;padding:10px 12px;background:var(--ag-superficie,#fff);box-shadow:inset 0 0 0 1px rgba(11,59,112,.1);display:grid}
.av-resumo strong{font-size:1.3rem;color:var(--ag-primaria,#0B3B70)}.av-resumo small{color:#5B6475;font-weight:700}
.av-legenda{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 10px;font-size:.8rem;font-weight:700;color:#374151}
.av-legenda i{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;color:#fff;font-style:normal;margin-right:4px;font-size:.75rem}
.av-busca{width:100%;max-width:340px;margin-bottom:10px}
.av-alunos{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}
@media (max-width:520px){.av-alunos{grid-template-columns:1fr}}
.av-card{border-radius:18px;padding:12px 14px;background:var(--ag-superficie,#fff);box-shadow:0 12px 28px -24px rgba(6,42,82,.6),inset 0 0 0 1px rgba(11,59,112,.12);display:grid;gap:8px;align-content:start}
.av-card.ne{background:#FFF6F4}
.av-card header{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.av-nota{font-weight:900;font-size:1.25rem;color:#9CA3AF;white-space:nowrap}.av-nota.ok{color:#22A35A}.av-nota small{font-size:.75rem;color:#6B7280}
.av-ne{margin:0;color:#9A1C12;font-weight:800;font-size:.85rem}
.av-crit{display:grid;gap:4px}
.av-crit-nome{display:flex;justify-content:space-between;gap:6px;font-size:.88rem}.av-crit-nome small{color:#6B7280}
.av-nvs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.av-nv{border:0;border-radius:10px;padding:7px 0;font-weight:900;cursor:pointer;background:#F1F4F8;color:#374151;box-shadow:inset 0 0 0 1.5px transparent;transition:background .15s}
.av-nv:hover{box-shadow:inset 0 0 0 1.5px var(--c)}
.av-nv.sel{background:var(--c);color:#fff}
.av-desc{color:#4B5563;font-size:.76rem;line-height:1.35;min-height:0}
.av-obs{width:100%;font:inherit;font-size:.85rem;border-radius:10px}
.av-card-acoes{display:flex;flex-wrap:wrap;gap:12px;font-size:.8rem}
.av-grupo{display:grid;gap:6px;max-height:50vh;overflow:auto}
.av-ed{border-radius:12px;padding:8px 10px;margin-bottom:8px;background:#F6F8FB}.av-ed summary{cursor:pointer;font-weight:800;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.av-ed summary input{min-width:0;flex:1}.av-ed .av-peso{max-width:70px;flex:none}
.turma-bt.turma-mais{border:1px dashed rgba(255,255,255,.35);opacity:.9}.turma-bt.turma-mais span{font-weight:700}

/* caixas de texto maiores ao criar e publicar atividades e conteúdos */
.modal textarea{min-height:8rem;font-size:1rem;line-height:1.6;padding:.75rem .9rem}
.modal .editor textarea{min-height:11rem}
.modal-fundo .modal.publicar{width:min(1100px,calc(100vw - 1.5rem));max-width:none}
.modal.publicar .modal-corpo{max-height:calc(100dvh - 9rem)}
@media (max-width:640px){.modal.publicar{width:100%}}
.turma-conta{list-style:none;margin:.5rem .2rem 0;padding:.5rem .55rem;border-radius:10px;background:rgba(11,59,112,.06);font-size:.72rem;line-height:1.35;color:#4B5563;word-break:break-all}
.turma-conta b{color:#0B3B70}.turma-conta .btn-link{display:block;margin-top:.15rem;font-size:.72rem}
.modal-fundo .modal.largo{max-width:none}
/* ícones ilustrados do Laboratório */
.ic-ilustrado { display: block; width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(11, 59, 112, .18)); }
.lp-ic .ic-ilustrado { width: 88%; height: 88%; }
.lp-sala-ic .ic-ilustrado { display: inline-block; width: 1.7em; height: 1.7em; vertical-align: -.45em; }

/* ===== Entrar com Google / celular e pedido de cadastro (aprovação pela Central) ===== */
.login-alternativo{display:grid;gap:.5rem;margin-top:.6rem}
.login-alternativo .ou{display:flex;align-items:center;gap:.6rem;margin:.1rem 0;color:#55657a;font-size:.8rem}
.login-alternativo .ou::before,.login-alternativo .ou::after{content:"";flex:1;height:1px;background:#DCE3EC}
.btn-google{display:flex;align-items:center;justify-content:center;gap:.55rem;width:100%}
.btn-google .g-logo{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font:900 .85rem Inter,sans-serif;color:#fff;background:conic-gradient(#EA4335 0 25%,#FBBC05 0 50%,#34A853 0 75%,#4285F4 0)}
.login-fone{border:1px solid #DCE3EC;border-radius:12px;padding:.1rem .7rem}
.login-fone summary{cursor:pointer;padding:.5rem 0;font-weight:700;font-size:.9rem;color:#0B3B70}
.login-fone-corpo{display:grid;gap:.45rem;padding-bottom:.7rem}
.login-fone-corpo input{min-height:42px;border:1px solid #C9D6E6;border-radius:10px;padding:.4rem .6rem;font:600 1rem Inter,sans-serif}
.login-fone-corpo small{color:#55657a;font-size:.76rem}
.cartao-entrada.aprov{max-width:520px;margin:0 auto;text-align:left}
.cartao-entrada.aprov .aprov-simbolo{display:block;margin:0 auto .4rem}
.cartao-entrada.aprov h2{text-align:center}
.cartao-entrada.aprov>.sub{text-align:center}
.cartao-entrada.aprov select,.cartao-entrada.aprov textarea{width:100%;border:1px solid #C9D6E6;border-radius:10px;padding:.45rem .6rem;font:500 .95rem Inter,sans-serif}

/* Avaliador: tipos de atividade criados pelo professor */
.av-modelo-caixa { position: relative; display: grid; }
.av-modelo-caixa > .av-modelo { width: 100%; }
.av-modelo-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(226,85,59,.1); cursor: pointer; font-size: 1rem; }
.av-modelo-x:hover { background: rgba(226,85,59,.22); }
.av-modelo-novo { border: 1px dashed var(--ag-primaria-media, #1556A0); background: transparent; box-shadow: none; align-content: center; justify-items: start; }
html.ag-escuro .av-modelo-novo { background: transparent; }

/* Caderneta: atividades unificadas */
.cd-tabela input.cd-auto { background: #EAF3FB; font-weight: 800; color: #0B3B70; cursor: default; }
html.ag-escuro .cd-tabela input.cd-auto { background: var(--ag-superficie-2); color: var(--ag-texto); }
.cd-tabela td.cd-nasoma input { opacity: .65; }
.cd-unif-lista { display: grid; gap: .35rem; margin: .6rem 0; max-height: 40vh; overflow: auto; }
.cd-unif-lista .campo-check { padding: .5rem .6rem; border: 1px solid var(--linha, #D5DFEB); border-radius: 10px; }

/* ===== Acabamento premium dos ícones de traço fino =====
   Mesmo desenho e mesma cor de antes; agora com traço mais fino, preenchimento suave (duotom) nas formas fechadas,
   detalhes em cor de destaque e profundidade discreta onde o ícone é grande. Funciona para todos os ícones de js/icones.js. */
.ag-ic svg { overflow: visible; }
.ag-ic svg .f { fill: currentColor; fill-opacity: .1; }
.acao-ic .ag-ic svg, .nav-item .ag-ic svg, .ni-item .ag-ic svg, .comando-icone .ag-ic svg, .abas-aluno a .ag-ic svg { filter: drop-shadow(0 1.5px 1.5px rgba(11, 59, 112, .2)); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .acao-ic .ag-ic svg, .nav-item .ag-ic svg, .ni-item .ag-ic svg, .comando-icone .ag-ic svg, .abas-aluno a .ag-ic svg { filter: drop-shadow(0 1.5px 1.5px color-mix(in srgb, currentColor 30%, transparent)); }
}
.acao-ic .ag-ic svg .p, .nav-item .ag-ic svg .p, .ni-item .ag-ic svg .p, .comando-icone .ag-ic svg .p { fill: var(--ag-destaque, #EBAA10); }
/* azulejo dos atalhos: placa suave com brilho interno, que acende na cor de destaque ao passar o mouse */
.acao:not(.acao-logo) .acao-ic {
  width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(150deg, #fff 0%, rgba(11, 59, 112, .07) 100%);
  box-shadow: inset 0 0 0 1px rgba(11, 59, 112, .12), inset 0 1px 0 #fff, 0 9px 14px -11px rgba(11, 59, 112, .55);
  transition: background var(--ag-transicao, .2s), box-shadow var(--ag-transicao, .2s), color var(--ag-transicao, .2s);
}
.acao:not(.acao-logo) .acao-ic .ag-ic { width: 34px; height: 34px; }
.acao:not(.acao-logo):hover .acao-ic {
  background: linear-gradient(150deg, #fff 0%, rgba(235, 170, 16, .2) 100%);
  box-shadow: inset 0 0 0 1px rgba(235, 170, 16, .5), inset 0 1px 0 #fff, 0 10px 16px -11px rgba(235, 170, 16, .8);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .acao:not(.acao-logo) .acao-ic {
    background: linear-gradient(150deg, #fff 0%, color-mix(in srgb, var(--ag-primaria-media, #1268AE) 9%, #fff) 100%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-primaria-media, #1268AE) 16%, transparent), inset 0 1px 0 #fff, 0 9px 14px -11px color-mix(in srgb, var(--ag-primaria-media, #1268AE) 60%, transparent);
  }
  .acao:not(.acao-logo):hover .acao-ic {
    background: linear-gradient(150deg, #fff 0%, color-mix(in srgb, var(--ag-destaque, #EBAA10) 22%, #fff) 100%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-destaque, #EBAA10) 55%, transparent), inset 0 1px 0 #fff, 0 10px 16px -11px color-mix(in srgb, var(--ag-destaque, #EBAA10) 85%, transparent);
  }
}
html.ag-escuro .acao:not(.acao-logo) .acao-ic { background: linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 9px 14px -11px rgba(0, 0, 0, .8); }
html.ag-escuro .ag-ic svg { filter: none; }
/* alto contraste: sem preenchimento nem sombra (só contorno nítido) */
html.a11y-contraste .ag-ic svg .f { fill: none; }
html.a11y-contraste .ag-ic svg { filter: none !important; }
html.a11y-contraste .acao:not(.acao-logo) .acao-ic { background: none; box-shadow: none; }

/* ===== Acabamento de design: seletor de tipos, listas com ícone de traço, formulários limpos ===== */
/* Cartões "O que você quer criar?" — sem barra grossa no topo, ícone de traço em placa suave, tipografia contida */
.grade-tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: .9rem; }
.grade-tipos .tipo-opcao, .tipo-opcao {
  --tc: var(--cor-tipo, var(--ag-primaria-media, #1268AE));
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; text-align: left;
  padding: 1.1rem 1.15rem 1.05rem; background: #fff; border: 1px solid #DDE3EC; border-top: 1px solid #DDE3EC; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.tipo-opcao .tipo-icone {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .55rem; border-radius: 13px; font-size: 1rem; color: var(--tc);
  background: linear-gradient(150deg, #fff 0%, rgba(11, 59, 112, .06) 100%); box-shadow: inset 0 0 0 1px rgba(11, 59, 112, .1), inset 0 1px 0 #fff;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .tipo-opcao .tipo-icone { background: linear-gradient(150deg, #fff 0%, color-mix(in srgb, var(--tc) 11%, #fff) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 18%, transparent), inset 0 1px 0 #fff; }
  .tipo-opcao:hover { border-color: color-mix(in srgb, var(--tc) 45%, #fff); box-shadow: 0 14px 28px -20px color-mix(in srgb, var(--tc) 75%, transparent), 0 1px 2px rgba(16, 24, 40, .04); }
  .tipo-opcao.ativo { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 5%, #fff); }
}
.tipo-opcao .tipo-icone .ag-ic { width: 26px; height: 26px; }
.tipo-opcao strong, .grade-tipos .tipo-opcao strong { font-size: 1rem; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; color: var(--ag-texto, #101828); }
.tipo-opcao small { font-size: .84rem; line-height: 1.5; font-weight: 400; color: #5B6678; }
.tipo-opcao:hover { transform: translateY(-2px); }
.tipo-opcao:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(18, 104, 174, .18); }

/* Ícones de traço nas listas e cartões (no lugar dos emojis) */
.item-icone, .mt-ic, .plano-ic {
  --tc: var(--cor-tipo, var(--ag-primaria-media, #1268AE));
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; color: var(--tc);
  background: linear-gradient(150deg, #fff 0%, rgba(11, 59, 112, .06) 100%); box-shadow: inset 0 0 0 1px rgba(11, 59, 112, .1);
}
@supports (color: color-mix(in srgb, red 50%, blue)) { .item-icone, .mt-ic, .plano-ic { background: linear-gradient(150deg, #fff 0%, color-mix(in srgb, var(--tc) 11%, #fff) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 18%, transparent); } }
.item-icone .ag-ic, .mt-ic .ag-ic, .plano-ic .ag-ic { width: 22px; height: 22px; }
.cartao-item-tipo, .item-tipo { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.cartao-item-tipo .ag-ic, .item-tipo .ag-ic { width: 1.2em; height: 1.2em; }
.editor-tipo { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; font-weight: 600; margin-bottom: 1.1rem; }
.editor-tipo .ag-ic { width: 1.5rem; height: 1.5rem; }
.editor-tipo small { grid-column: 2; font-weight: 400; font-size: .84rem; line-height: 1.45; }

/* Janelas: título e textos contidos e bem alinhados */
.modal-topo { padding: 1.1rem 1.4rem .95rem; }
.modal-topo h2 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.modal-corpo { padding: 1.15rem 1.4rem; }
.modal-corpo > p, .modal .sub { font-size: .92rem; line-height: 1.6; color: #475467; margin: 0 0 1.1rem; }
.modal-acoes { padding: .9rem 1.4rem 1.1rem; gap: .6rem; align-items: center; }
.modal-acoes .btn, .modal-acoes .btn-sec, .modal-acoes .btn-fantasma { min-height: 44px; padding: 0 1.35rem; border-radius: 12px; font-weight: 600; letter-spacing: .005em; }
.modal-acoes .btn-fantasma { color: #475467; background: transparent; box-shadow: none; }
.modal-acoes .btn-fantasma:hover { background: rgba(16, 24, 40, .05); }

/* Campos de formulário: contorno fino, rótulo discreto, foco suave, seta própria nos seletores */
.campo { gap: .42rem; margin-bottom: 1.05rem; }
.campo > span, .campo > label > span:first-child { font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: #475467; }
.campo small { font-size: .78rem; line-height: 1.45; color: #667085; }
.modal input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), .modal select, .modal textarea,
.campo input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), .campo select, .campo textarea {
  min-height: 46px; padding: .62rem .95rem; font-size: 1rem; line-height: 1.4; color: var(--ag-texto, #101828); background-color: #fff;
  border: 1px solid #D0D7E2; border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.modal textarea, .campo textarea { min-height: 7.5rem; line-height: 1.6; padding: .8rem .95rem; resize: vertical; }
.modal ::placeholder, .campo ::placeholder { color: #98A2B3; opacity: 1; }
.modal input:hover:not(:focus):not([type=checkbox]):not([type=radio]), .modal select:hover:not(:focus), .modal textarea:hover:not(:focus),
.campo input:hover:not(:focus), .campo select:hover:not(:focus), .campo textarea:hover:not(:focus) { border-color: #B6C0CF; }
.modal input:focus, .modal select:focus, .modal textarea:focus, .campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--ag-primaria-media, #1268AE); box-shadow: 0 0 0 4px rgba(18, 104, 174, .13), 0 1px 2px rgba(16, 24, 40, .04);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .modal input:focus, .modal select:focus, .modal textarea:focus, .campo input:focus, .campo select:focus, .campo textarea:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ag-primaria-media, #1268AE) 14%, transparent), 0 1px 2px rgba(16, 24, 40, .04);
  }
}
.modal select, .campo select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px;
}
html.ag-escuro .modal input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), html.ag-escuro .modal select, html.ag-escuro .modal textarea,
html.ag-escuro .campo input, html.ag-escuro .campo select, html.ag-escuro .campo textarea { background-color: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); color: inherit; box-shadow: none; }
html.ag-escuro .tipo-opcao, html.ag-escuro .item-icone, html.ag-escuro .mt-ic, html.ag-escuro .plano-ic { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
html.ag-escuro .tipo-opcao strong { color: inherit; } html.ag-escuro .tipo-opcao small, html.ag-escuro .modal-corpo > p, html.ag-escuro .campo > span { color: rgba(255, 255, 255, .7); }
@media (max-width: 560px) { .grade-tipos { grid-template-columns: 1fr 1fr; gap: .7rem; } .tipo-opcao { padding: .95rem .9rem; } .tipo-opcao small { font-size: .8rem; } }

/* Janelas de IA: títulos de seção em sobrelinha discreta, cartões de modo limpos, espaçamento consistente */
.modal-corpo > h3, .modal-corpo > .campo + h3, .modal h3.sec, .modal-corpo h3 {
  margin: 1.35rem 0 .6rem; font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #667085; line-height: 1.3;
}
.modal-corpo > h3:first-child { margin-top: 0; }
.aai-modos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.aai-modo {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left; padding: .95rem 1.05rem;
  background: #fff; border: 1px solid #DDE3EC; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); cursor: pointer;
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease;
}
.aai-modo strong { font-size: .95rem; font-weight: 650; letter-spacing: -.005em; color: var(--ag-texto, #101828); }
.aai-modo small { font-size: .82rem; line-height: 1.5; color: #5B6678; }
.aai-modo:hover { border-color: #B6C0CF; }
.aai-modo.ativo { border-color: var(--ag-primaria-media, #1268AE); background: rgba(18, 104, 174, .05); box-shadow: 0 0 0 3px rgba(18, 104, 174, .12); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .aai-modo.ativo { background: color-mix(in srgb, var(--ag-primaria-media, #1268AE) 5%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag-primaria-media, #1268AE) 13%, transparent); }
}
.aai-modo:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(18, 104, 174, .22); }
html.ag-escuro .aai-modo { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
html.ag-escuro .aai-modo strong { color: inherit; } html.ag-escuro .aai-modo small { color: rgba(255, 255, 255, .7); }
html.ag-escuro .modal-corpo h3 { color: rgba(255, 255, 255, .6); }
/* detalhes e recomendações recolhíveis */
.modal-corpo details > summary { font-size: .86rem; font-weight: 600; color: #475467; cursor: pointer; margin: .65rem 0 .3rem; }
.aai-modo small { opacity: 1; }
.grade-tipos { margin-bottom: 1.15rem; }
.aai-modos { margin-bottom: .5rem; }

/* Página baixada (PDF/PNG) de atividade ou aula sobre o modelo: aparência de papel impresso, não de tela */
.pm-impresso { font: 16px/1.55 "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.pm-impresso .cab-prova { border: 1.2px solid currentColor; border-radius: 0; padding: .7rem .85rem; margin: 0 0 14px; background: transparent; box-shadow: none; }
.pm-impresso .cab-topo { display: flex; align-items: center; gap: 12px; padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px solid currentColor; }
.pm-impresso .cab-brasao { height: 44px; width: auto; border-radius: 0; }
.pm-impresso .cab-escola { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.25; }
.pm-impresso .cab-dados { margin: 2px 0 0; font-size: 11px; opacity: .8; }
.pm-impresso .cab-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13px; }
.pm-impresso .cab-item { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.pm-impresso .cab-item b { font-weight: 700; white-space: nowrap; }
.pm-impresso .pm-linha { flex: 1; min-width: 60px; min-height: 1.1em; border-bottom: 1px solid currentColor; padding: 0 3px; }
.pm-impresso .cab-campo.curto .pm-linha { min-width: 34px; }
.pm-impresso fieldset.questao { border: 0; padding: 0; margin: 0 0 14px; background: transparent; box-shadow: none; }
.pm-impresso .enunciado, .pm-impresso fieldset.questao > p, .pm-impresso fieldset.questao > div:first-of-type { font-size: 15.5px; }
.pm-impresso .pm-pontos { display: inline-block; margin: 2px 0 6px; font-size: 12px; opacity: .75; font-style: italic; }
.pm-impresso .alternativas { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; }
.pm-impresso .alternativa { display: flex; align-items: baseline; gap: 8px; padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; font-size: 15px; }
.pm-impresso .alternativa .letra-op { font-weight: 700; min-width: 1.2em; background: transparent; border: 0; width: auto; height: auto; color: inherit; box-shadow: none; }
.pm-impresso .pm-marca { flex: none; width: 13px; height: 13px; border: 1.3px solid currentColor; border-radius: 50%; position: relative; top: 2px; }
.pm-impresso .pm-marca.on { background-color: currentColor; }
.pm-impresso .pm-resp { font-size: 15px; white-space: pre-wrap; margin-top: 4px; }
.pm-impresso .pm-resp.pm-linhas { height: 5.4em; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.8em - 1px), rgba(0, 0, 0, .55) calc(1.8em - 1px), rgba(0, 0, 0, .55) 1.8em); }

.pm-impresso .cab-topo:not(:has(img)):not(:has(.cab-escola:not(:empty))) { display: none; }
.pm-impresso .cab-topo .cab-escola:empty { display: none; }

/* Aluno no celular: barra de baixo enxuta (4 seções + Mais), o resto numa folha */
.aba-mais, .mais-folha { display: none; }
@media (max-width: 700px) {
  body.pagina-aluno .abas-aluno { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; overflow: visible; padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); }
  body.pagina-aluno .abas-aluno a[data-sec] { display: none; }
  body.pagina-aluno .abas-aluno a, body.pagina-aluno .abas-aluno .aba-mais { min-width: 0; width: 100%; }
  body.pagina-aluno .abas-aluno .aba-mais {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .4rem .2rem; min-height: 56px;
    background: none; border: 0; border-radius: 14px; color: inherit; font: inherit; font-size: .72rem; line-height: 1.15; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  body.pagina-aluno .abas-aluno .aba-mais .ag-ic { width: 26px; height: 26px; }
  body.pagina-aluno .abas-aluno .aba-mais.ativo { background: rgba(255, 255, 255, .14); font-weight: 700; }
  body.pagina-aluno .mais-folha:not([hidden]) {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; right: .6rem; left: .6rem; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 160;
    padding: .65rem; background: #fff; border: 1px solid #DDE3EC; border-radius: 18px; box-shadow: 0 18px 44px -12px rgba(6, 30, 60, .45); animation: maisSobe .22s ease both;
  }
  .mais-folha a { display: flex; align-items: center; gap: .6rem; padding: .8rem .85rem; border-radius: 12px; background: #F4F7FB; color: #0B3B70; font: 600 .9rem/1.2 "Inter", sans-serif; text-decoration: none; min-height: 52px; }
  .mais-folha a .ag-ic { width: 24px; height: 24px; flex: none; }
  .mais-folha a.ativo { background: #0B3B70; color: #fff; }
  .mais-folha a.ativo .ag-ic { color: #EBAA10; }
  html.ag-escuro .mais-folha:not([hidden]) { background: var(--ag-superficie); border-color: var(--ag-borda); }
  html.ag-escuro .mais-folha a { background: rgba(255, 255, 255, .06); color: var(--ag-texto); }
  @keyframes maisSobe { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .mais-folha { animation: none !important; } }

/* Importar questões */
.bq-imp { display: grid; gap: .8rem; }
.bq-imp input[type=file] { padding: .7rem; border: 1px dashed #B6C0CF; border-radius: 12px; background: #F7F9FC; width: 100%; }
.bq-imp-resumo { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .92rem; }
.bq-imp-resumo li { padding: .5rem .75rem; border-radius: 10px; background: #F4F7FB; }
.bq-imp-resumo li.aviso { background: #FFF6DB; }
.bq-imp-lista { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: .88rem; }
.bq-imp-enun { margin: .15rem 0 .3rem; color: #344054; }
.bq-imp-barra { height: 6px; border-radius: 99px; background: #E4E9F1; overflow: hidden; }
.bq-imp-barra i { display: block; height: 100%; width: 0; background: #1268AE; transition: width .2s ease; }

.bq-img { display: block; max-width: 100%; max-height: 180px; margin: .4rem 0; border: 1px solid #DDE3EC; border-radius: 10px; object-fit: contain; background: #fff; }
.enunciado .q-texto { flex: 1; min-width: 0; }
.enunciado .q-figura { display: block; max-width: 100%; max-height: 420px; margin: .6rem 0 .2rem; border-radius: 10px; object-fit: contain; }

/* =====================================================================
   Vistoria 18/11 — textos que vazam e acabamento premium das linhas
   ===================================================================== */
:root { --ag-fio: rgba(11, 43, 82, .13); --ag-fio-forte: rgba(11, 43, 82, .24); --ag-realce: inset 0 1px 0 rgba(255, 255, 255, .85); }

/* ---- vazamentos ---- */
html .cd-onb-centro { min-width: 0; max-width: 100%; }
html .cd-passos { overflow: hidden; }
html .cd-passos li { min-width: 0; }
html .cd-passo-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html .manual li, html .legal li, html li a { overflow-wrap: anywhere; }
html .mu-bloco small, html .mu-bloco .sub { overflow-wrap: anywhere; min-width: 0; }
html .ag-contexto-bt small, html .ag-contexto-bt strong { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html .lateral-pe .perfil-nome, html .lateral-pe small { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html .cd-rodape-acoes { display: flex; flex-wrap: wrap; gap: .45rem; }
html .cd-rodape-acoes .cd-bt { flex: 1 1 calc(50% - .3rem); justify-content: center; text-align: center; min-width: 0; }
html .btn, html .cd-bt, html .btn-acao, html .btn-link { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
@media (min-width: 701px) and (max-width: 1400px) { html .pagina-aluno .topo .abas-aluno a { padding-inline: .5rem; font-size: .92rem; } }

/* ---- código da turma: ações em fileira de botões, não em coluna solta ---- */
html .cabeca-turma .carimbo { max-width: 100%; }
html .cabeca-turma .carimbo-acoes { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: .45rem; }
html .cabeca-turma .carimbo-acoes .btn-link { text-decoration: none; padding: .32rem .8rem; border: 1px solid var(--ag-fio-forte); border-radius: 999px; background: #fff; color: var(--ag-primaria, #0B3B70); font-weight: 700; font-size: .78rem; line-height: 1.2; min-height: 32px; box-shadow: 0 1px 0 rgba(11, 43, 82, .04); transition: border-color .16s, background .16s, transform .16s; }
html .cabeca-turma .carimbo-acoes .btn-link:hover { border-color: #E0A91C; background: #FFFBEF; }
@media (max-width: 700px) { html .cabeca-turma .carimbo { flex: 1 1 100%; width: 100%; } }

/* ---- barra de ações das publicações (Mural): uma linha limpa, ícone ao lado do texto ---- */
html .post-acoes { display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--ag-fio); margin-top: .75rem; padding-top: .65rem; }
html .post-acoes .btn-acao { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; flex: 1 1 auto; min-height: 36px; padding: .3rem .8rem; border: 1px solid var(--ag-fio); border-radius: 999px; background: #fff; color: var(--ag-primaria, #0B3B70); font-size: .85rem; font-weight: 600; white-space: nowrap; line-height: 1.2; transition: border-color .16s, background .16s; }
html .post-acoes .btn-acao:hover { border-color: var(--ag-fio-forte); background: #F7FAFD; }
html .post-acoes .btn-acao.ativo { background: #FFF6DC; border-color: #E0A91C; }
html .post-acoes .btn-acao.perigo { color: #A32A2A; }
html .post-acoes .btn-acao .ilu-e { flex: none; }
html .mu-centro .post-acoes { justify-content: stretch; }

/* ---- ícones no topo escuro (menu e sino): placa creme para aparecer ---- */

/* ---- linhas finas e acabamento: campos, caixas, cartões, abas ---- */
html input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), html select, html textarea {
  border: 1px solid var(--ag-fio-forte); border-radius: 12px; background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(11, 43, 82, .05); transition: border-color .18s, box-shadow .18s, background-color .18s;
}
html input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):hover, html select:hover, html textarea:hover { border-color: rgba(11, 43, 82, .38); }
html input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):focus, html select:focus, html textarea:focus {
  border-color: #1F5A9E; background-color: #fff; box-shadow: inset 0 1px 2px rgba(11, 43, 82, .03), 0 0 0 3px rgba(224, 169, 28, .30); outline: none;
}
html .cartao-item, html .caixa-texto, html .mu-bloco, html .vazio.grande, html .cd-onb-cartao, html .ct-bloco, html .estante-cartao, html .bd-cat-bt, html .acao-card, html .acao {
  border-color: var(--ag-fio); box-shadow: var(--ag-realce), 0 1px 2px rgba(11, 43, 82, .04), 0 10px 24px -16px rgba(11, 43, 82, .20);
}
html .btn-sec, html .btn-claro, html .cd-bt:not(.verde):not(.azul):not(.laranja) { border: 1px solid var(--ag-fio-forte); box-shadow: 0 1px 0 rgba(11, 43, 82, .05); }
html .btn-sec:hover, html .btn-claro:hover, html .cd-bt:not(.verde):not(.azul):not(.laranja):hover { border-color: rgba(11, 43, 82, .42); }
html hr { border-top: 1px solid var(--ag-fio); }
html table { border-collapse: separate; border-spacing: 0; }
html th, html td { border-color: var(--ag-fio); }
html details > summary { border-radius: 12px; }
html [class*="vazio"][class*="tracejado"], html .dropzone, html .bq-imp input[type=file] { border: 1px dashed rgba(11, 43, 82, .30); border-radius: 14px; }

/* ---- Minha assinatura (janela e prévia) ---- */
.ass-editor { display: grid; gap: .8rem; }
.ass-previa { min-height: 96px; border: 1px solid var(--ag-fio-forte, #CBD5E1); border-radius: 14px; background: #fff; display: grid; place-items: center; padding: .6rem; background-image: linear-gradient(#fff, #fff); }
.ass-previa img { max-width: 100%; max-height: 120px; object-fit: contain; }
.ass-previa-vazia { color: #6B7A90; font-size: .9rem; }
.ass-tela { width: 100%; height: auto; aspect-ratio: 1800 / 560; border: 1px solid var(--ag-fio-forte, #CBD5E1); border-radius: 14px; background: #fff; cursor: crosshair; touch-action: none; display: block; margin: .4rem 0 .6rem; }
.ass-modo .linha-botoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.ass-usar { display: flex; align-items: center; gap: .5rem; font-weight: 700; }

/* Listas: o ícone ilustrado aparece inteiro, sem placa cinza por baixo e sem estourar a caixa */
html .item-icone:has(.ag-ic.ilu-on), html .mt-ic:has(.ag-ic.ilu-on), html .plano-ic:has(.ag-ic.ilu-on) {
  background: none; box-shadow: none; border: 0; border-radius: 0; width: 48px; height: 48px; overflow: visible;
}
html .item-icone .ag-ic.ilu-on, html .mt-ic .ag-ic.ilu-on, html .plano-ic .ag-ic.ilu-on { width: 46px; height: 46px; }
html.ag-escuro .item-icone:has(.ag-ic.ilu-on), html.ag-escuro .mt-ic:has(.ag-ic.ilu-on), html.ag-escuro .plano-ic:has(.ag-ic.ilu-on) { background: none; border: 0; }
html.ag-escuro .item-icone .ag-ic.ilu-on img.ilu-n, html.ag-escuro .mt-ic .ag-ic.ilu-on img.ilu-n, html.ag-escuro .plano-ic .ag-ic.ilu-on img.ilu-n { display: none; }
html.ag-escuro .item-icone .ag-ic.ilu-on img.ilu-c, html.ag-escuro .mt-ic .ag-ic.ilu-on img.ilu-c, html.ag-escuro .plano-ic .ag-ic.ilu-on img.ilu-c { display: block; }

/* celular: nome da turma em cima; embaixo o código (à esquerda) e as ações (à direita) — nunca um por cima do outro */
@media (max-width: 700px) {
  html body .cabeca-turma { flex-wrap: wrap; align-items: flex-start; gap: .55rem; }
  html body .cabeca-turma > div:first-child { flex: 1 1 100%; min-width: 0; }
  html body .cabeca-turma .carimbo { flex: 1 1 100%; width: 100%; max-width: 100%; box-sizing: border-box; display: grid;
    grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; align-items: center; text-align: left; padding: .6rem .8rem; }
  html body .cabeca-turma .carimbo-rotulo { grid-column: 1; grid-row: 1; }
  html body .cabeca-turma .carimbo-codigo { grid-column: 1; grid-row: 2; }
  html body .cabeca-turma .carimbo-acoes { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; justify-content: flex-end; gap: .35rem; }
}

/* ---------- Botões: um padrão só ----------
   Principal = azul cheio (uma por barra) · Secundário = branco com contorno · Texto (Fechar/Cancelar) = sem caixa.
   Mesma altura, mesmo raio e mesma largura dentro de cada grupo; ícone ou nenhum, nunca misturado. */
html .modal-acoes.com-grupo { justify-content: space-between; flex-wrap: nowrap; gap: 1rem; }
html .modal-acoes-grupo { flex: 1 1 auto; min-width: 0; max-width: 100%; display: grid; gap: .6rem; justify-content: end;
  grid-template-columns: repeat(var(--n, 2), minmax(138px, 1fr)); }
html .modal-acoes-grupo > .btn { width: 100%; min-width: 0; min-height: 44px; padding: 0 .45rem; border-radius: 12px; font-weight: 700; font-size: .85rem; justify-content: center; text-align: center; white-space: normal; line-height: 1.15; }
html .modal-acoes-grupo > .btn-ouro { background: #fff; color: var(--ag-primaria, #0B3B70); border: 1px solid var(--ag-fio-forte, #CBD7E6); box-shadow: 0 1px 0 rgba(11, 43, 82, .05); }
html .modal-acoes-grupo > .btn-ouro:hover { background: var(--ag-primaria-clara, #EAF1FB); }
html .modal-acoes.com-grupo > .btn-fantasma { flex: none; }
@media (max-width: 900px) {
  html .modal-acoes.com-grupo { display: flex; flex-wrap: wrap; }
  html .modal-acoes-grupo { flex: 1 1 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  html .modal-acoes-grupo > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  html .modal-acoes.com-grupo > .btn-fantasma { order: 2; width: 100%; }
}
/* barra de ações do cabeçalho de uma atividade: botões brancos iguais, lado a lado */
html .it-faixa-acoes .btn { min-height: 44px; border-radius: 12px; padding: 0 1.1rem; font-weight: 700; }

/* Arena: bloco de acrescentar questões automaticamente */
.ar-ed-mais { margin: 1rem 0 .4rem; padding: .9rem 1rem; border: 1px solid var(--ag-fio, #DCE5F1); border-radius: 14px; background: linear-gradient(180deg, #fff, #F6F9FD); }
.ar-ed-mais .rotulo { margin: 0 0 .55rem; }
.ar-ed-mais .linha-botoes { align-items: center; gap: .6rem; }
.ar-ed-mais .btn-link { font-weight: 700; }
html.ag-escuro .ar-ed-mais { background: var(--ag-superficie); border-color: var(--ag-borda); }

/* Lista de quem ainda não fez: cartão com contador e nomes em etiquetas */
.faltam-caixa{margin-top:.9rem;border:1px solid var(--borda,#DCE3EE);border-radius:14px;background:#fff;overflow:hidden}
.faltam-caixa>summary{display:flex;align-items:center;gap:.6rem;padding:.7rem 1rem;cursor:pointer;list-style:none;color:#0B3B70;font-weight:700}
.faltam-caixa>summary::-webkit-details-marker{display:none}
.faltam-caixa>summary::after{content:"";margin-left:auto;width:.5rem;height:.5rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.faltam-caixa[open]>summary::after{transform:rotate(-135deg)}
.faltam-n{min-width:1.6rem;padding:.05rem .5rem;border-radius:999px;background:#FFF3D6;color:#8A5F00;font-size:.85rem;text-align:center}
.faltam-lista{list-style:none;margin:0;padding:0 1rem 1rem;display:flex;flex-wrap:wrap;gap:.4rem .5rem}
.faltam-chip{padding:.25rem .7rem;border-radius:999px;background:#F1F5FB;color:#24344D;font-size:.88rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* =====================================================================
   Gerar avaliação: botões em dois grupos, um só botão de destaque
   ===================================================================== */
.ga-grupos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; margin: .9rem 0 1rem; }
.ga-grupo { padding: .9rem 1rem 1rem; border: 1px solid #DCE5F0; border-radius: 14px; background: #F8FAFD; }
.ga-grupo h3 { margin: 0 0 .6rem; font: 700 .74rem/1 "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5A6B82; }
.ga-botoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.ga-botoes .btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: .5rem; min-height: 44px; width: 100%; padding: 0 .9rem; border-radius: 11px; font-size: .9rem; font-weight: 700; text-align: left; white-space: normal; line-height: 1.15; }
.ga-botoes .btn .ag-ic { flex: none; width: 1.25rem; height: 1.25rem; }
.ga-botoes .btn:not(.btn-sec) { background: #0B3B70; color: #fff; border: 0; }
.ga-botoes .btn-sec { background: #fff; color: #0B3B70; border: 1px solid #CBD7E6; box-shadow: none; }
.ga-botoes .btn-sec:hover { background: #EAF1FB; }
.ga-grupo .info-modelo { margin: .6rem 0 0; font-size: .82rem; color: #5A6B82; }
.linha-resumo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 0; border-top: 1px solid #E3EAF3; }
.linha-resumo .contador { margin: 0; font-weight: 600; color: #24344D; }
.linha-resumo .btn-link { border: 0; background: none; padding: .3rem .1rem; font: 700 .88rem/1 "Inter", sans-serif; color: #B4232A; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.q-conferir { background: #FFF3D6; color: #8A5F00; border-color: #F2DB9E; }
@media (max-width: 760px) { .ga-grupos { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ga-botoes { grid-template-columns: 1fr; } }

/* Importar avaliações */
.iav { display: grid; gap: .9rem; }
.iav .linha-botoes .btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: 11px; }
.iav-colar { border: 1px solid #DCE5F0; border-radius: 12px; padding: .6rem .9rem; background: #fff; }
.iav-colar summary { cursor: pointer; font-weight: 700; color: #0B3B70; }
.iav-colar textarea { width: 100%; margin: .6rem 0; }
.iav-aviso { margin: 0; font-size: .82rem; }
.iav-andamento { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.iav-andamento li { padding: .5rem .8rem; border-radius: 10px; background: #F1F5FB; color: #24344D; font-size: .88rem; }
.iav-andamento li.ok { background: #E6F6EC; color: #17803F; }
.iav-andamento li.erro { background: #FDECEC; color: #B4232A; }
.iav-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.iav-gab { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: #3B4A5C; cursor: pointer; }
.iav-cartoes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.iav-cartao { display: grid; gap: .6rem; padding: .85rem 1rem; border: 1px solid #DCE5F0; border-radius: 14px; background: #fff; }
.iav-info { display: grid; gap: .15rem; min-width: 0; }
.iav-info strong { overflow-wrap: anywhere; color: #0B3B70; }
.iav-info small { color: #5A6B82; }
.iav-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.iav-acoes .btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .95rem; border-radius: 10px; font-size: .86rem; font-weight: 700; }
.iav-acoes .btn .ag-ic { width: 1.15rem; height: 1.15rem; }
.iav-acoes .btn:not(.btn-sec) { background: #0B3B70; color: #fff; border: 0; }
.iav-acoes .btn-icone { margin-left: auto; }

/* =====================================================================
   Banco de questões: abas, ações e filtros mais limpos
   ===================================================================== */
html .bq-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin-bottom: 1rem; }
html .bq-topo > .bq-abas:first-child { display: inline-flex; flex-wrap: nowrap; gap: 0; padding: 3px; border-radius: 12px; background: #EEF3F9; }
html .bq-topo > .bq-abas:first-child .bq-aba { min-height: 38px; padding: 0 .95rem; border: 0; border-radius: 9px; background: transparent; box-shadow: none; color: #3B4A5C; }
html .bq-topo > .bq-abas:first-child .bq-aba .ag-ic { color: #5A6B82; }
html .bq-topo > .bq-abas:first-child .bq-aba:hover { background: rgba(255, 255, 255, .6); }
html .bq-topo > .bq-abas:first-child .bq-aba.ativo { background: #fff; color: #0B3B70; box-shadow: 0 1px 4px rgba(11, 59, 112, .18); }
html .bq-topo > .bq-abas:first-child .bq-aba.ativo .ag-ic { color: #0B3B70; }
html .bq-topo > .bq-abas:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
html .bq-topo > .bq-abas:last-child .bq-aba { min-height: 40px; padding: 0 .95rem; border-radius: 10px; background: #fff; border: 1px solid #CBD7E6; box-shadow: none; color: #0B3B70; }
html .bq-topo > .bq-abas:last-child .bq-aba:hover { background: #EAF1FB; border-color: #9DB7D6; }
html .bq-topo > .bq-abas:last-child .bq-aba .ag-ic { color: #0B3B70; }
html .bq-topo > .bq-abas:last-child .bq-aba.ouro { background: #0B3B70; border-color: #0B3B70; color: #fff; }
html .bq-topo > .bq-abas:last-child .bq-aba.ouro:hover { background: #134E8E; }
html .bq-topo > .bq-abas:last-child .bq-aba.ouro .ag-ic { color: #fff; }
html .bq-topo > .bq-abas:last-child .bq-aba.ia { background: #fff; color: #0B3B70; border-color: #CBD7E6; }
html .bq-topo > .bq-abas:last-child .bq-aba.ia .ag-ic { color: #C98A0E; }
@media (max-width: 700px) {
  html .bq-topo > .bq-abas:first-child { width: 100%; }
  html .bq-topo > .bq-abas:first-child .bq-aba { flex: 1 1 0; justify-content: center; padding: 0 .4rem; }
  html .bq-topo > .bq-abas:last-child { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .bq-topo > .bq-abas:last-child .bq-aba { justify-content: center; }
}
html .bq-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .55rem; margin-bottom: .8rem; }
html .bq-filtros .bq-busca { grid-column: 1 / -1; }
html .bq-filtros .bq-sel { padding: 0 .6rem; }
html .bq-filtros .bq-sel select { text-overflow: ellipsis; }
html .bq-chips { gap: .4rem; margin-bottom: 1rem; }
html .bq-chips > strong { flex: 0 0 100%; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: #5A6B82; }
html .bq-linha { padding-bottom: .7rem; border-bottom: 1px solid #E3EAF3; }
html .barra-usar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .9rem; margin-bottom: .9rem; border: 1px solid #BCD8F2; border-radius: 12px; background: #EAF3FC; }
html .barra-usar .sub { margin: 0; color: #24344D; font-weight: 600; }
html .barra-usar .btn { width: auto; flex: none; min-height: 42px; padding: 0 1.2rem; border-radius: 10px; background: #0B3B70; color: #fff; border: 0; font-weight: 700; }
html .barra-usar .btn:disabled { background: #AFC2D9; color: #fff; opacity: 1; cursor: not-allowed; box-shadow: none; }
@media (max-width: 520px) { html .barra-usar { flex-wrap: wrap; } html .barra-usar .btn { width: 100%; } }
.q-topo:has(.q-conferir) .q-tipo:not(.q-conferir){margin-right:.5rem}
.ga-grupo:last-child .ga-botoes { grid-template-columns: minmax(0, 1fr); }
html .bq-filtros { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
html .bq-busca input, html .bq-sel select { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; min-height: 0 !important; height: auto !important; padding: .55rem 0 !important; outline: 0 !important; }
html .bq-busca, html .bq-sel { min-height: 46px; }
html .bq-ordem select { min-height: 40px; padding: 0 .8rem; font-size: .9rem; }
@media (max-width: 700px) {
  html .bq-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .bq-chips { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  html .bq-chips > * { flex: 0 1 auto; }
  html .bq-chips > strong { flex: 0 0 100%; }
}

/* Avaliação adaptada: pictogramas e letras maiores */
.ga-botoes .ga-adaptar { grid-column: 1 / -1; border-color: #E0B94A; background: #FFF9E8; }
.ga-botoes .ga-adaptar:hover { background: #FFF1CC; }
.q-adaptada { background: #FFF3D6; color: #8A5F00; border-radius: 999px; padding: .1rem .55rem; font-weight: 700; }
.q-pictos { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .5rem 0 .2rem; }
.q-pictos img { height: 72px; width: auto; background: #fff; border: 1px solid #E3EAF3; border-radius: 10px; padding: 4px; }
.q-ed .q-pictos img { height: 40px; }
.q-pictos .q-credito { flex: 0 0 100%; color: #6B7A8F; font-size: .72rem; }
.questao.q-adaptada .q-texto, .questao.q-adaptada .alternativa { font-size: 1.15rem; line-height: 1.65; }
.alternativa .op-picto { height: 52px; width: auto; border-radius: 8px; background: #fff; padding: 3px; border: 1px solid #E3EAF3; }
.linha-resumo .btn-link.neutro { color: #0B3B70; margin-left: auto; margin-right: 1rem; }

/* BNCC dentro do Ágora: escolha de habilidades */
.bn { display: flex; flex-direction: column; gap: .6rem; }
.bn-filtros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.bn-filtros select, .bn > input[type=search] { width: 100%; min-width: 0; padding: .55rem .65rem; border: 1px solid #CBD6E4; border-radius: 10px; background: #fff; font: inherit; color: #0B2540; }
.bn-conta { margin: 0; color: #5B6B80; font-size: .85rem; }
.bn-lista { max-height: min(48vh, 440px); overflow: auto; border: 1px solid #E3EAF3; border-radius: 12px; background: #fff; }
.bn-item { display: grid; grid-template-columns: auto 1fr; gap: .65rem; padding: .65rem .8rem; border-bottom: 1px solid #EEF2F7; cursor: pointer; align-items: start; }
.bn-item:last-child { border-bottom: 0; }
.bn-item:hover { background: #F6F9FD; }
.bn-item input { margin-top: .25rem; width: 18px; height: 18px; accent-color: #0B3B70; }
.bn-txt { display: flex; flex-wrap: wrap; gap: .15rem .6rem; align-items: baseline; min-width: 0; }
.bn-cod { font-weight: 700; color: #0B3B70; letter-spacing: .01em; }
.bn-meta { color: #8A6A12; font-size: .78rem; }
.bn-t { flex: 0 0 100%; color: #1F2F44; font-size: .93rem; line-height: 1.45; overflow-wrap: anywhere; }
.bn-rodape { margin: 0; color: #0B3B70; font-weight: 600; font-size: .9rem; }
.bn-campo .bn-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.bn-ia { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; color: #1F2F44; cursor: pointer; }
.bn-ia input { width: 18px; height: 18px; accent-color: #0B3B70; }
.bn-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bn-chip { border: 1px solid #E0B94A; background: #FFF9E8; color: #6B4E00; border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.bn-chip:hover { background: #FFF1CC; }
.q-tipo.q-bncc { background: #E8F0FA; color: #0B3B70; border-radius: 999px; padding: .1rem .55rem; font-weight: 700; cursor: help; }
@media (max-width: 640px) { .bn-filtros { grid-template-columns: 1fr; } .bn-lista { max-height: 42vh; } }
.bn-fundo { position: fixed; inset: 0; z-index: 1200; background: rgba(11, 37, 64, .55); display: grid; place-items: center; padding: 1rem; }
.bn-caixa { width: min(720px, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(11, 37, 64, .35); overflow: hidden; }
.bn-topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid #E3EAF3; }
.bn-topo h2 { margin: 0; font-size: 1.1rem; color: #0B2540; }
.bn-x { border: 0; background: transparent; font-size: 1.1rem; color: #5B6B80; cursor: pointer; padding: .2rem .5rem; }
.bn-corpo { padding: 1rem 1.2rem; overflow: auto; }
.bn-botoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; padding: .8rem 1.2rem; border-top: 1px solid #E3EAF3; }
.bn-btn { border: 0; border-radius: 10px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; background: #0B3B70; color: #fff; cursor: pointer; }
.bn-btn.claro { background: #EEF2F7; color: #0B2540; }
.bn-aviso { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1300; background: #0B2540; color: #fff; padding: .7rem 1.1rem; border-radius: 12px; max-width: 90vw; }
.campo .btn-bncc { margin-top: .4rem; justify-self: start; border: 1px solid #0B3B70; background: #fff; color: #0B3B70; border-radius: 10px; padding: .45rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.campo .btn-bncc:hover { background: #EEF4FB; }
.bn-aluno { margin: .6rem 0; border: 1px solid #D9E2EE; border-radius: 10px; padding: .55rem .8rem; background: #F7FAFD; color: #0B3B70; font-size: .92rem; }
.bn-aluno summary { cursor: pointer; font-weight: 600; }
.bn-aluno p { margin: .4rem 0 0; color: #33475E; }

/* menu lateral: item ativo sutil — véu de cor, filete lateral e texto na cor normal do menu (sem preencher tudo) */
html .lateral .nav-item.ativo {
  background: color-mix(in srgb, var(--ag-menu-ativo) 16%, transparent);
  color: var(--ag-menu-texto);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-menu-ativo) 28%, transparent);
  font-weight: 700;
}
html .lateral .nav-item.ativo::before {
  display: block; content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--ag-menu-ativo);
}
html .lateral .nav-item.ativo .ag-ic { color: var(--ag-menu-ativo); }
/* como o fundo deixou de ser cheio, o ícone volta à versão clara no menu escuro */
html:not(.ag-menu-claro) .lateral .nav-item.ativo .ag-ic.ilu-on img.ilu-n { display: none; }
html:not(.ag-menu-claro) .lateral .nav-item.ativo .ag-ic.ilu-on img.ilu-c { display: block; }

/* menu lateral: toque, foco e passar o mouse com o mesmo tom sutil em todos os grupos (inclusive Ferramentas) */
.lateral .nav-item { -webkit-tap-highlight-color: transparent; }
html .lateral .nav-item:active, html .lateral .nav-item:focus-visible {
  background: color-mix(in srgb, var(--ag-menu-ativo) 16%, transparent);
  color: var(--ag-menu-texto);
  outline: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-menu-ativo) 28%, transparent);
}
html .lateral .nav-item:not(.ativo):hover { background: color-mix(in srgb, var(--ag-menu-texto) 8%, transparent); }

/* ===== Laboratório: cartões no estilo da plataforma (traço azul-marinho e dourado) ===== */
.lp-ic { background: #fff; color: var(--cor); border: 2px solid color-mix(in srgb, var(--cor) 38%, #fff); box-shadow: 0 8px 16px -8px rgba(11, 59, 112, .45); }
.lp-atv-ic { background: #fff; border: 1.5px solid color-mix(in srgb, var(--cor) 30%, #fff); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--cor) 7%, #fff); }
.ic-ilustrado { filter: none; width: 78%; height: 78%; }
.lp-ic .ic-ilustrado { width: 84%; height: 84%; }
.lp-atv-ic .ic-ilustrado { width: 74%; height: 74%; }
.lp-hero-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-right: .6rem; vertical-align: -.5rem; border-radius: 13px; background: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55); }
.lp-hero-ic .ic-ilustrado { width: 80%; height: 80%; }
.lp-corpo p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.lp-corpo .lp-pe { margin-top: auto; padding-top: .7rem; }
.lp-corpo { justify-content: flex-start; }
.lp-arte { background: var(--cor); }
html.ag-escuro .lp-ic, html.ag-escuro .lp-atv-ic { background: #fff; }
@media (max-width: 700px) { .lp-hero-ic { width: 38px; height: 38px; } }
.lp-hero .lp-arte { background: linear-gradient(135deg, var(--cor), color-mix(in srgb, var(--cor) 30%, #041228)); }
.lp-hero .lp-arte svg { position: absolute; right: 0; top: 0; height: 100%; width: auto; aspect-ratio: 320 / 140; }
.lp-hero .lp-arte svg rect { fill: transparent; }
.lp-hero .lp-arte svg { opacity: .5; }

/* ===== Laboratório: nova apresentação dos cartões (traço azul-marinho e dourado) ===== */
.lp-i { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; }
.lp-i svg { width: 100%; height: 100%; display: block; }
.lp-busca .lp-i { width: 21px; height: 21px; color: #5B6B80; }
.lp-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem .4rem .55rem; }
.lp-chip-ic { width: 20px; height: 20px; object-fit: contain; flex: none; }
.lp-card { border-radius: 20px; box-shadow: 0 14px 30px -22px rgba(11, 59, 112, .6); }
.lp-arte { height: 112px; }
.lp-arte::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 112px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .0) 55%, rgba(4, 18, 40, .22)); }
.lp-card .lp-arte { position: relative; }
.lp-ic { top: 84px; left: 1rem; width: 54px; height: 54px; border-radius: 16px; }
.lp-fav { width: 36px; height: 36px; border-radius: 11px; filter: none; opacity: 1; background: rgba(255, 255, 255, .92); display: grid; place-items: center; padding: 0; }
.lp-fav .lp-i { width: 18px; height: 18px; color: #0B3B70; }
.lp-fav.ativo { background: #F2B724; }
.lp-fav.ativo .lp-i svg { fill: currentColor; }
.lp-corpo { padding: 2.1rem 1.1rem 1.1rem; gap: 0; }
.lp-corpo .lp-area { margin: 0 0 .2rem; font: 800 .68rem/1.25 "Inter", sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #9A6B00; flex: none; }
.lp-corpo h3 { font-size: 1.14rem; line-height: 1.25; margin: 0 0 .45rem; }
.lp-corpo .lp-desc { -webkit-line-clamp: 4; margin-bottom: .9rem; flex: 1 0 auto; }
.lp-meta { list-style: none; margin: auto 0 0; padding: .75rem 0 0; border-top: 1px dashed #D5DFEB; display: grid; gap: .4rem; }
.lp-meta li { display: flex; align-items: center; gap: .5rem; font: 600 .8rem/1.25 "Inter", sans-serif; color: #4A5B70; }
.lp-meta .lp-i { width: 17px; height: 17px; color: var(--cor); }
.lp-bt { margin: .95rem 0 0; width: 100%; padding: .72rem 1rem; border-radius: 12px; font-size: .9rem; text-align: center; box-shadow: 0 10px 18px -12px var(--cor); }
.lp-atv-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.lp-atv-meta .lp-i { width: 15px; height: 15px; color: var(--cor); }
.lp-atv-acoes .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.lp-atv-acoes .lp-i { width: 16px; height: 16px; }
html.ag-escuro .lp-meta { border-color: var(--ag-borda); }
html.ag-escuro .lp-meta li { color: #B8C4D6; }
html.ag-escuro .lp-corpo .lp-area { color: #F2B724; }
@media (max-width: 700px) {
  .lp-arte, .lp-arte::after { height: 100px; }
  .lp-ic { top: 72px; width: 50px; height: 50px; }
  .lp-corpo { padding-top: 1.9rem; }
  .lp-corpo .lp-desc { -webkit-line-clamp: 5; }
}
