/* Área do aluno · mesma identidade do site eduardoportela.com.br
   Grafite + azul royal + toque dourado; Instrument Serif nos títulos, Instrument Sans no texto. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fontes/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fontes/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fontes/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fontes/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fontes/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fontes/instrument-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fontes/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fontes/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #f8f8fa;
  --surface: #ffffff;
  --ink: #15172b;
  --ink-2: #4b4f63;
  --ink-3: #686c7e;
  --royal: #24389a;
  --royal-deep: #18265f;
  --mist: #eceff9;
  --line: rgba(21, 23, 43, .10);
  --line-2: rgba(21, 23, 43, .18);
  --brass: #a8864a;
  --brass-ink: #85672f;
  --brass-soft: #f3ecdf;
  --ok: #1f6f5c;
  --ok-soft: #e3f2ec;
  --erro: #a3261e;
  --erro-soft: #fbe9e7;
  --sombra: 0 30px 60px -44px rgba(21, 23, 43, .45);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --marca: 'Plus Jakarta Sans', system-ui, sans-serif;
  --raio: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
body.com-nav { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--royal-deep); }
h1, h2, h3 { margin: 0; color: var(--ink); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.ic { flex: none; }
:focus-visible { outline: 3px solid rgba(36, 56, 154, .45); outline-offset: 2px; border-radius: 6px; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 200; }
.pular:focus { left: 12px; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 90;
  background: rgba(248, 248, 250, .92); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px);
}
.topo-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; min-width: 0; color: var(--ink); }
.marca b { font-family: var(--marca); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.marca span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }
.marca:hover b { color: var(--royal); }
.topo-nav { display: none; gap: 4px; align-items: center; }
.topo-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.topo-nav a:hover { color: var(--ink); background: var(--mist); }
.topo-nav a[aria-current="page"] { color: var(--royal); background: var(--mist); font-weight: 600; }
.topo-nav .nav-painel { border: 1px solid var(--line-2); margin-left: 6px; }
.topo-site { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 10px 4px; }
.botao-icone { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
@media (min-width: 820px) {
  .topo-nav { display: flex; }
  .so-celular { display: none !important; }
  body.com-nav { padding-bottom: 0; }
  .barra { display: none !important; }
}

/* ---------- barra inferior (celular) ---------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}
.barra a { flex: 1; max-width: 120px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: 12px; font-weight: 500; border-radius: 14px; }
.barra a[aria-current="page"] { color: var(--royal); font-weight: 700; }
.barra a[aria-current="page"] .ic { stroke-width: 2.2; }

/* ---------- estrutura ---------- */
.conteudo { max-width: 1160px; margin: 0 auto; padding: 24px 20px 48px; }
.secao { margin-top: 36px; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.secao h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.sobretitulo { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-ink); }
.texto-suave { color: var(--ink-2); }
.pequeno { font-size: 14px; }
.ola { display: flex; flex-direction: column; gap: 4px; }
.ola h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 7vw, 54px); line-height: 1.02; letter-spacing: -0.02em; }
.ola h1 em { font-style: italic; color: var(--royal); }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: #fff;
  font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--royal); color: #fff; }
.btn-royal { background: var(--royal); }
.btn-royal:hover { background: var(--royal-deep); }
.btn-sec { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-sec:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-perigo { background: var(--surface); color: var(--erro); border-color: rgba(163, 38, 30, .35); }
.btn-perigo:hover { background: var(--erro-soft); color: var(--erro); }
.btn-pequeno { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-bloco { width: 100%; }
.btn-link { background: none; border: none; padding: 10px 4px; color: var(--royal); font: 500 15px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.campo label, .rotulo { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.campo .ajuda { font-size: 13.5px; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], input[type=tel], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: 400 16px/1.4 var(--sans);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(36, 56, 154, .15); }
.marcar { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.marcar input { width: 20px; height: 20px; accent-color: var(--royal); }

/* ---------- avisos ---------- */
.aviso { margin: 0 0 20px; padding: 14px 18px; border-radius: 14px; font-size: 15px; border: 1px solid transparent; }
.aviso-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(31, 111, 92, .2); }
.aviso-erro { background: var(--erro-soft); color: var(--erro); border-color: rgba(163, 38, 30, .2); }
.aviso-info { background: var(--mist); color: var(--royal-deep); border-color: rgba(36, 56, 154, .15); }

/* ---------- cartões ---------- */
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); }
.instalar { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 16px; }
.instalar .ic-caixa { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--mist); color: var(--royal); display: flex; align-items: center; justify-content: center; }
.instalar .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.instalar .txt b { font-size: 15px; }
.instalar .txt span { font-size: 13.5px; color: var(--ink-2); }

/* capa (foto do curso, imagem do vídeo, ou capa desenhada) */
.capa { position: relative; aspect-ratio: 16 / 9; border-radius: var(--raio); overflow: hidden; background: var(--royal-deep); isolation: isolate; }
.capa-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.capa-vazia { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px 18px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(168, 134, 74, .38), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(36, 56, 154, .9), transparent 70%), var(--royal-deep); }
.capa-arvore { position: absolute; right: 6%; top: 8%; height: 84%; width: auto; opacity: .55; }
.capa-arvore line { stroke: rgba(241, 217, 160, .45); stroke-width: 1; }
.capa-arvore circle { fill: var(--royal-deep); stroke: #f1d9a0; stroke-width: 1.2; }
.capa-arvore circle.on { fill: #f1d9a0; }
.capa-cat { position: relative; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #e6c98d; }
.capa-tit { position: relative; max-width: 70%; font-family: var(--serif); font-size: 26px; line-height: 1.04; color: #fbf6ea; text-wrap: balance; }
.play-redondo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.play-redondo { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.play-redondo .ic { margin-left: 3px; }

.continuar { display: grid; grid-template-columns: 1fr; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); }
.continuar .capa { border-radius: 0; }
.continuar .corpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.continuar .corpo b { font-size: 19px; line-height: 1.3; }
.continuar:hover { color: var(--ink); border-color: var(--line-2); }
.continuar:hover b { color: var(--royal); }
@media (min-width: 720px) { .continuar { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .continuar .capa { aspect-ratio: auto; min-height: 240px; } }

.progresso { height: 6px; border-radius: 3px; background: #e2e5f1; overflow: hidden; }
.progresso i { display: block; height: 100%; background: var(--royal); border-radius: 3px; }
.progresso-txt { font-size: 13.5px; color: var(--ink-2); }

.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (min-width: 720px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; } }
@media (min-width: 1040px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.curso-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.curso-card .capa { aspect-ratio: 4 / 3; transition: transform .25s ease; }
.curso-card .capa-vazia { padding: 12px 14px; }
.curso-card .capa-tit { font-size: 21px; max-width: 78%; }
.curso-card .capa-cat { font-size: 10px; }
.curso-card:hover { color: var(--ink); }
.curso-card:hover .capa { transform: translateY(-2px); }
.curso-card:hover b { color: var(--royal); }
.curso-card b { font-size: 15.5px; line-height: 1.3; }
.curso-card .meta { font-size: 13px; color: var(--ink-2); }
.curso-card .progresso { margin-top: 2px; }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.vazio { text-align: center; padding: 56px 20px; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.vazio h1, .vazio h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.vazio p { margin: 0; color: var(--ink-2); }

/* ---------- página do curso ---------- */
.curso-topo { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
@media (min-width: 900px) { .curso-topo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.curso-topo h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6.5vw, 60px); line-height: 1.02; letter-spacing: -0.02em; margin: 6px 0 10px; }
.curso-topo .descricao { color: var(--ink-2); margin: 0 0 18px; max-width: 58ch; white-space: pre-line; }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-ink); font-size: 13px; font-weight: 600; border: 1px solid rgba(168, 134, 74, .35); }
.voltar { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 15px; margin: -6px 0 8px -6px; padding-right: 8px; }
.voltar:hover { color: var(--royal); }
.prog-caixa { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; max-width: 420px; }
.prog-caixa .linha { display: flex; justify-content: space-between; font-size: 14px; }

.modulo { margin-top: 30px; }
.modulo h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 4px; }
.modulo .qtd { font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
.lista { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); overflow: hidden; }
.lista li + li { border-top: 1px solid var(--line); }
.lista a.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; text-decoration: none; color: var(--ink); }
.lista a.item:hover { background: #fbfbfd; color: var(--ink); }
.lista a.item:hover .t { color: var(--royal); }
.lista .estado { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); color: var(--ink-3); font-size: 13px; font-weight: 600; }
.lista .estado.feita { background: var(--royal); border-color: var(--royal); color: #fff; }
.lista .estado.atual { border-color: var(--brass); color: var(--brass-ink); background: var(--brass-soft); }
.lista .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.lista .t { font-weight: 500; font-size: 15.5px; }
.lista .m { font-size: 13px; color: var(--ink-3); }
.lista .tag-atual { font-size: 12px; font-weight: 600; color: var(--brass-ink); }

/* ---------- aula ---------- */
.aula-grade { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1000px) { .aula-grade { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
.video { position: relative; aspect-ratio: 16 / 9; background: #0e1024; border-radius: var(--raio); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .sem-video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c9cde0; font-size: 15px; padding: 20px; text-align: center; }
@media (max-width: 719px) { .aula-pagina .conteudo { padding-top: 0; } .aula-pagina .video { margin: 0 -20px; border-radius: 0; } }
.aula-cab { margin-top: 18px; }
.aula-cab .curso-nome { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.aula-cab .curso-nome:hover { color: var(--royal); }
.aula-cab h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.08; letter-spacing: -0.01em; margin: 4px 0 6px; }
.concluir { margin-top: 16px; }
.concluir .btn { width: 100%; }
@media (min-width: 720px) { .concluir .btn { width: auto; } }
.btn-feita { background: var(--ok-soft); color: var(--ok); border-color: rgba(31, 111, 92, .3); }
.btn-feita:hover { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }

.abas { display: flex; gap: 4px; padding: 4px; margin-top: 26px; background: var(--mist); border-radius: 14px; }
.abas button { flex: 1; min-height: 44px; border: none; border-radius: 10px; background: transparent; color: var(--ink-2); font: 500 14.5px var(--sans); cursor: pointer; }
.abas button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(21, 23, 43, .12); }
.painel-aba { padding-top: 18px; }
.painel-aba .titulo-aba { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 10px; }
.js .painel-aba .titulo-aba { display: none; }
.descricao-aula { white-space: pre-line; color: var(--ink-2); margin: 0; font-size: 16.5px; line-height: 1.7; }
.materiais { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.materiais a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 500; }
.materiais a .ic { color: var(--brass-ink); }
.materiais a:hover { border-color: var(--royal); color: var(--royal); }
.materiais a span { flex: 1; min-width: 0; }
.materiais a small { font-size: 12.5px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.material-audio { padding: 12px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.material-audio .cab { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.material-audio .cab .ic { color: var(--brass-ink); }
.material-audio .cab span { flex: 1; min-width: 0; }
.material-audio .cab a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink-2); padding: 0; border: none; min-height: 0; background: none; }
.material-audio .cab a:hover { color: var(--royal); background: var(--mist); }
.material-audio audio { width: 100%; height: 40px; }
.salvo { font-size: 13.5px; color: var(--ok); min-height: 20px; }

.navegar-aulas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.navegar-aulas .btn { width: 100%; padding: 0 14px; }
.navegar-aulas .so-um { grid-column: 1 / -1; }
.lateral h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 10px; }
.lateral .lista a.item { min-height: 56px; padding: 10px 14px; }
.lateral .lista .estado { width: 28px; height: 28px; }
.lateral .mod-nome { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-ink); padding: 14px 16px 6px; background: #fbfbfd; }
.lista li.atual a.item { background: var(--mist); }

/* ---------- entrar ---------- */
.entrar { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; gap: 0; padding: 24px 0 40px; }
.entrar .cartao { width: 100%; max-width: 440px; padding: 30px 24px; position: relative; z-index: 1; }
.entrar h1 { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 8px; }
.entrar h1 em { font-style: italic; color: var(--royal); }
.entrar .sub { color: var(--ink-2); margin: 0 0 24px; }
.entrar .rodape-form { margin: 14px 0 0; text-align: center; font-size: 15px; }
.entrar-lado { display: none; }
.entrar-topo { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.entrar-topo .retrato { width: 56px; height: 56px; }
.retrato { position: relative; border-radius: 50%; overflow: hidden; background: var(--mist); flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(168, 134, 74, .5); }
.retrato img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.retrato .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; color: var(--royal); }
.entrar-topo small { display: block; font-size: 13px; color: var(--ink-3); }
.entrar-topo b { font-family: var(--marca); font-weight: 800; font-size: 16px; }
@media (min-width: 900px) {
  .entrar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 40px 0; }
  .entrar .cartao { justify-self: end; }
  .entrar-topo { display: none; }
  .entrar-lado { display: flex; position: relative; justify-self: start; width: 100%; max-width: 480px; min-height: 560px; border-radius: 28px; overflow: hidden; color: #fbf6ea; flex-direction: column; justify-content: flex-end; padding: 34px;
    background: radial-gradient(90% 70% at 100% 0%, rgba(168, 134, 74, .35), transparent 60%), radial-gradient(80% 70% at 0% 100%, rgba(36, 56, 154, .95), transparent 70%), var(--royal-deep); box-shadow: 0 40px 80px -50px rgba(21, 23, 43, .7); }
  .entrar-lado .foto { position: absolute; inset: 0; }
  .entrar-lado .foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
  .entrar-lado .foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 38, 95, 0) 35%, rgba(24, 38, 95, .92) 82%); }
  .entrar-lado .arvore { position: absolute; right: 30px; top: 30px; width: 90px; opacity: .8; z-index: 1; }
  .entrar-lado .txt { position: relative; z-index: 1; }
  .entrar-lado .txt p { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
  .entrar-lado .txt p em { color: #f1d9a0; }
  .entrar-lado .txt span { display: block; margin-top: 12px; font-size: 14px; color: #d8dcf0; letter-spacing: .02em; }
}
.arvore line { stroke: rgba(241, 217, 160, .5); stroke-width: 1; }
.arvore circle { fill: var(--royal-deep); stroke: #f1d9a0; stroke-width: 1.2; }
.arvore circle.on { fill: #f1d9a0; }
.fundo-suave { background: radial-gradient(900px 420px at 85% 0%, rgba(36, 56, 154, .07), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(168, 134, 74, .07), transparent 70%), var(--bg); background-attachment: fixed; }
.ajuda-whats { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.ajuda-whats:hover { color: var(--royal); }

/* ---------- topo da biblioteca ---------- */
.boas-vindas { position: relative; margin: -24px -20px 0; padding: 30px 20px 26px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 320px at 92% 0%, rgba(36, 56, 154, .08), transparent 70%), radial-gradient(500px 260px at 0% 120%, rgba(168, 134, 74, .09), transparent 70%); }
.boas-vindas .arvore-fundo { position: absolute; right: 4%; top: 14px; height: calc(100% - 28px); max-height: 190px; width: auto; opacity: .9; }
.arvore-fundo line { stroke: rgba(36, 56, 154, .22); stroke-width: 1; }
.arvore-fundo circle { fill: var(--bg); stroke: var(--royal); stroke-width: 1.1; }
.arvore-fundo circle.on { fill: var(--royal); }
.boas-vindas .ola { position: relative; max-width: 70%; }
.resumo { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.resumo b { color: var(--ink); font-weight: 600; }
@media (min-width: 720px) {
  .boas-vindas { margin: 0; padding: 40px 40px 36px; border: 1px solid var(--line); border-radius: 26px; background-color: var(--surface); box-shadow: var(--sombra); }
  .boas-vindas .arvore-fundo { max-height: 220px; right: 7%; }
}
.curso-hero { position: relative; }

/* ---------- aula: fim e retomada ---------- */
.retomar { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.fim-aula { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border-radius: 16px; background: var(--ok-soft); border: 1px solid rgba(31, 111, 92, .25); color: var(--ok); }
.fim-aula b { font-size: 16px; }
.fim-aula .btn { margin-left: auto; }

/* ---------- certificado (cartão na página do curso) ---------- */
.cert-cartao { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px; border-radius: var(--raio); background: var(--brass-soft); border: 1px solid rgba(168, 134, 74, .35); }
.cert-cartao .selo-grande { width: 52px; height: 52px; flex: none; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--brass-ink); box-shadow: inset 0 0 0 1.5px rgba(168, 134, 74, .6); }
.cert-cartao .txt { flex: 1; min-width: 0; }
.cert-cartao .txt b { display: block; font-size: 16px; }
.cert-cartao .txt span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .cert-cartao { flex-wrap: wrap; } .cert-cartao .btn { width: 100%; } }

/* ---------- painel (admin) ---------- */
.painel-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.painel-topo h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.abas-painel { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; }
.abas-painel a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; background: var(--surface); }
.abas-painel a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.numeros .cartao { padding: 16px; box-shadow: none; }
.numeros b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.numeros span { font-size: 13.5px; color: var(--ink-2); }
.tabela-caixa { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: #fbfbfd; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td a { font-weight: 500; }
.etiqueta { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.et-ok { background: var(--ok-soft); color: var(--ok); }
.et-rascunho { background: var(--brass-soft); color: var(--brass-ink); }
.et-off { background: #eceef3; color: var(--ink-2); }
.form-grade { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 760px) { .form-grade.duas { grid-template-columns: 1fr 1fr; } }
.bloco-mod { margin-top: 18px; padding: 0; overflow: hidden; }
.bloco-mod .mod-cab { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: #fbfbfd; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bloco-mod .mod-cab h3 { flex: 1; min-width: 160px; font-size: 17px; font-weight: 700; }
.linha-aula { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.linha-aula:last-child { border-bottom: none; }
.linha-aula .n { width: 26px; color: var(--ink-3); font-size: 14px; }
.linha-aula .t { flex: 1; min-width: 160px; }
.linha-aula .t small { display: block; color: var(--ink-3); font-size: 13px; }
.mini { display: inline-flex; gap: 4px; }
.mini form { display: inline; margin: 0; }
.mini button, .mini a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mini button:hover, .mini a:hover { border-color: var(--ink); color: var(--ink); }
.mini button.perigo:hover { border-color: var(--erro); color: var(--erro); }
.mini button:disabled { opacity: .35; cursor: default; }
.form-inline { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; }
.form-inline input { flex: 1; min-width: 200px; min-height: 44px; }
.convite { margin-top: 18px; border-color: rgba(36, 56, 154, .25); background: #fbfbff; }
.convite h2 { font-size: 18px; margin-bottom: 6px; }
.convite .caixa-link { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.convite .caixa-link input { flex: 1; min-width: 220px; font-size: 14px; }
.checks { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.capa-previa { width: 200px; border-radius: 12px; margin-bottom: 10px; }
.zona-perigo { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
details.ajuda-box { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
details.ajuda-box summary { cursor: pointer; color: var(--royal); font-weight: 500; min-height: 36px; display: flex; align-items: center; }
